I am struggling for two days now to create a "Hello JavaFX"-Project within my Eclipse IDE using JDK11. I got to know that JavaFX was decoupled this year from the JDK and it has to be integrated separately but it seems that there are no tutorials for that specific setting as described in the subject of this post. And since I am a newbie to that all, I do not not have the mental flexibility to fix and engineer all by myself with my Java- and IDE-Config - Experience so far.
So here are the resources I tried to use for my endeavour so far:
Do I need more components to start building JavaFX projects with Eclipse or are the above mentioned sufficient and do you know how to do the set-up properly? Do I maybe have to use an older version of Java respectively an older JDK (if yes, how can I easily switch between Java Version in Eclipse?)?
Sorry for asking so many questions, but it is getting a bit frustrating now xD.
All things are lawful, but not all things are profitable.
posted 7 months ago
Jan Daermann wrote:Marius,
It is a little difficult to judge where you are stuck from your description. First of all you can use Java 11 and the corresponding JavaFX 11 package, you do not have to use older versions.
As a first step I would suggest you check whether you have installed the "Java 11 for Eclipse" patch. Then check whether JavaFX has been included in the module path of your project.
I installed x and x
Furthermore I added via the properties of a certain project to the module path all the .jar-files of fx. The imports are working fine now. So no error messages for those.
Now a new error message appears:
Could not find or load main class hellofx.HelloFx where hellofx is just the name of the single one package in the project and HelloFx is the single one class, which contains the following code:
Thanks for the hints, Jan.
I did some research for that error as well, but only got some information, that the package name probably is not included properly, which it actually is.