I just started with javafx about 2 days ago I experienced many weaknesses between javafx and Netbeans. One of them is netbeans do not sync project files. It do not simply work as swing application as when we save or run file in swing the changing effect sync all over the project and application do not show any error and show appropriate result.
But in javafx when we change anything we have to clean and build the project to make it work. Is this happening to others too or there is something I have to do in my project?
In my case a single change in any file do not take effect unless I clean and build my project. If something wrong guide me what to do.
Edit: Moreover how you import something in fxml file I'm unable to import anything with alt+enter.
Thanks
Related
Trying to set up debugger for spring aplication. Based on the comment from this What creates target directory in spring boot application?
I might need artifacts.
I do not know hot to set up the artifacts for spring boot application, so trying to set up by cmd application article https://www.jetbrains.com/help/idea/debug-a-java-application-using-a-dockerfile.html
I did not set Main class, because I have no idea what is main class in my project. I tried searching function main() but did not find it. So I had set up:
Running Build > Build Artifacts and choosing my jar artifact, I get
/home/agmis/projects/openelis/src/main/java/org/openelisglobal/dataexchange/fhir/FhirUtil.java:4:46
java: package org.itech.fhir.dataexport.core.service does not exist
I think there is high chance that this part of code works, because I have been debuging related code, seen that function. So I am just probably getting this error when building artifacts. And the function is modified on April 5 this year, so this also adds the confidence that this part of code works.
I see interface is in red, and import is grey so because IDE also does not see it.
So how to fix that?
Also if you can give a link to a good tutorial on how to setup debugger with docker which would solve me this problem and maybe I would not even get this error, this could make the problem solved also.
Update
Based on Renato "Reload All Maven Projects" - did not help, same problem still.
I create my project using the LibGDX setup tool and import it using eclipses, but when I test the project, without making any modifications, No windows pop up, and the program terminates.
I've tried both importing it as a Gradle and as a project.
I had the project working 1 week ago, but I cannot seem to get the project to run anymore.
Previous versions of LibGDX and Eclipse dont work either
Not sure if this will help you or not:
When you create your libGDX project, create it in folder that is NOT within the workspace folder you wish to use for Eclipse - that can cause quite a lot of unexpected results.
A basic setup as follows has always worked for me, first time, every time:
C:\MyProjects\MyLibGdxProject\libGDX <- Target folder for libGDX (not within Workspace)
C:\MyProjects\MyLibGdxProject\workspace <- Workspace for Eclipse
Problem: I have created a Desktop Application with Java and SWT/JFace.
The project contains design, action, util and model classes. Created executable jar, All works fine but now i am facing some branding and endorsing issue i.e.
- Minimize should display in task bar.
- Running executable jar is showing as a javaw.exe in task manager list
not with its name.
- On alt + tab application appear as unknown exe
Now I want a suggestion. Can these issue be solved easily without impacting a lot if yes then please provide needed clue? or should I go to Eclipse RCP plugin productization which can handle all above means.
If sole answer is No, Then please suggest an optimize way to migrate to eclipse RCP. it would be nice if you point action list as I am new in such productization.
Update As i have created GUI by SWT/Jface and, using main as entry point I have created its executable jar, is this creating problem that i hav mentioned above?
I was working just fine on my JavaFX project till I installed netbeans-7.4beta-windows this morning. I then uninstalled it and tried to revert back to netbeans-7.2.1-ml-windows since 7.4beta was showing me code errors I wasn't getting with 7.2.1.
Now, unfortunately, when I try to run my project, I very sadly get the following pop-up error:
UnsatisfiedLinkError:
com.sun.deploy.config.WinPlatformUserHome()Ljava/lang/String;
When I click on "OK" my project window shows, but with nothing but a white window: no borders, just nothing. Not even the text and forms I coded in.
What could be the problem. Will trully appreciate any help.
It seems this has something to do with the way JavaFX builds projects. If you look at the bug report here, it discusses the same problem that you maybe having.
Try creating a new project, move all the files over to the new project and run it.
Have you tried refreshing your current project?
I agree with Little Child. However, I have had the same problem in the past. Create a new Netbeans project (or javafx project), transfer all the class files on to it, delete the original. Build the new project and it should work!
I am very new to Android application development.
I successfully added some backgrounds to several layouts. And added media files to play. However when I rename a file in the folder structure, it shows an error that the resource does not exist.
But I can see those files in gen-><mypackage>->R.java->drawable.
Now my background pictures and resources do not appear in code.
R.layout.splashforproduct1 it shows an error for splashforproduct1.
not only splashforproduct1 but this issue is the same for R.raw.media.mp4
This is not first time I have got this issues. Please help me.
I am using Android 2.2 with eclipse.
If cleaning your project doesn't work try this: Scroll up to the top of the file and delete the import lines. Then wait for Eclipse to detect your changes and let it work out what you need to import and accept its suggestions.
I guess you just need to clean your project.
In Eclipse you do it clicking:
Project -> Clean and then you choose your android project.