|
|
|
|
|
|
Re: 11 errors on "New FX-Project" [message #1804235 is a reply to message #1802480] |
Thu, 21 March 2019 03:32   |
Eclipse User |
|
|
|
I too am an Mac OS user with JDK 11 and am wanting create Java FX applications using Eclipse and am running into the same compilation/import problems with the HelloWorld application built by the wizard of my E(FX) v3.5.0 plug in in the most recent stable version of Eclipse.
I downloaded the open JDK 11 zip file from and have it in: /Library/Java/javafx-SDK-11.0.2//lib
But then what am I supposed to do from eclipse so that it knows about this JDK? I have tried going in to the project properties and adding javafx.fxml.jar and various others in to the build path but the provided code will still not compile.
What am I supposed to do with it and also, why is this process not properly or clearly documented?
|
|
|
|
Re: 11 errors on "New FX-Project" [message #1804293 is a reply to message #1804282] |
Fri, 22 March 2019 00:17   |
Eclipse User |
|
|
|
I really should not have to install Gradle just to build basic Java GUI applications. I have to suffer Gradle in Android and would like to stay away from it for vanilla Java applications. I really think this process needs to be simplified. In particular if Oracle are going to harm their eco system, then it falls on E(FX) to simply this without requiring things such as Gradle and Maven.
It really does feel like the support for JavaFX (in JDK 11)from all IDEs has taken a back seat so much so that I think for a language as prominent and important as Java, its quite an awful situation which will only drive people elsewhere. If E(fx) can simplify this, Eclipse will be at a clear advantage overt other IDEs as far as JavaFX goes and will only strengthen E(fx)s importants within the Eclipse EcoSystem.
[Updated on: Fri, 22 March 2019 00:28] by Moderator Report message to a moderator
|
|
|
|
Re: 11 errors on "New FX-Project" [message #1810732 is a reply to message #1804313] |
Sun, 18 August 2019 11:04   |
Eclipse User |
|
|
|
I now have found the solution for the problem with Eclipse an JavaFX:
- E(fx)clipse is not required
- Install JavaFX, e.g. version 12
- Make a user library from this libs inside the JavaFX folder, e.g. JavaFX 12
- Make a new Java project and add the JavaFX 12 user library
- Create a new JFX application
- Run the application with a modified Eclipse run configuration:
Add the vm arguments:
--module-path /Users/bsteppan/ ... /javafx-sdk-12.0.1/lib --add-modules javafx.controls,javafx.fxml
and -- VERY IMPORT --
disable the check box: Use the -XstartOnFirstThread argument when launching with SWT
Hope this helps!
-Bernhard
[Updated on: Thu, 29 August 2019 04:12] by Moderator Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04065 seconds