How to implement Java 13 + JavaFX 13 in 2019-2-4?
Answered
Hi
how can I implement Java 13 and JavaFX (Gluon) in 2019-2-4?
I have tried it several times, but it didn't work!
Anybody a real working tutorial at hand or instruction how to run it?
I'm looking for a working solution :))
Thank you in advance
Please sign in to leave a comment.
See https://www.jetbrains.com/help/idea/2019.3/javafx.html and https://openjfx.io/openjfx-docs/ .
[url=https://abload.de/image.php?img=k1600_2019-12-07_2032t5kzm.jpg][img]https://abload.de/img/k1600_2019-12-07_2032t5kzm.jpg[/img][/url]
in the vm edit field I can only choose a path - how can I add the other things to the path
--module-path I:\javafx-sdk-13.0.1\lib --add-modules javafx.controls,javafx.fxml
You can add these parameters in the VM Options field of the run/debug configuration.
Error appears
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.base not found
Make sure everything is configured according to https://stackoverflow.com/a/53388434/104891.
I do :(
[url=https://abload.de/image.php?img=2019-12-08_22170264k6u.jpg][img]https://abload.de/img/2019-12-08_22170264k6u.jpg[/img][/url]
javafx.base is already there
"C:\Program Files\Java\jdk-13.0.1\bin\java.exe" --module-path I:\javafx-sdk-13.0.1 --add-modules javafx.controls,javafx.fxml --add-modules javafx.base,javafx.graphics --add-reads javafx.base=ALL-UNNAMED --add-reads javafx.graphics=ALL-UNNAMED "-javaagent:C:\Program Files\JB2\IntelliJ IDEA 2019.2.4\lib\idea_rt.jar=2147:C:\Program Files\JB2\IntelliJ IDEA 2019.2.4\bin" -Dfile.encoding=UTF-8 -classpath I:\fx13a\out\production\fx13a;I:\javafx-sdk-13.0.1\lib\src.zip;I:\javafx-sdk-13.0.1\lib\javafx-swt.jar;I:\javafx-sdk-13.0.1\lib\javafx.web.jar;I:\javafx-sdk-13.0.1\lib\javafx.base.jar;I:\javafx-sdk-13.0.1\lib\javafx.fxml.jar;I:\javafx-sdk-13.0.1\lib\javafx.media.jar;I:\javafx-sdk-13.0.1\lib\javafx.swing.jar;I:\javafx-sdk-13.0.1\lib\javafx.controls.jar;I:\javafx-sdk-13.0.1\lib\javafx.graphics.jar sample.Main
--module-path I:\javafx-sdk-13.0.1
It looks like you are missing the lib subdirectory, should be like this:
--module-path I:\javafx-sdk-13.0.1\lib
I can't believe it - it works :))))
Thank you very much - you make my day
Hmmm
tried this tut again from scratch - have deleted and reinstalled IDEA
and now this error appears
"Error: Could not find or load main class Files\java\javafx-sdk-13.0.1\lib
Caused by: java.lang.ClassNotFoundException: Files\java\javafx-sdk-13.0.1\lib"
Something with the path variable ??? :(
Module path is not quoted and contains spaces. Either properly quote it or move JavaFX into a new location without spaces.
Now it works again - thanks second time :))
If you hit "java.lang.module.FindException: Module javafx.base not found"
when add below already.
"--module-path %PATH_TO_FX% --add-modules=javafx.controls"
May be try:
"--module-path %PATH_TO_FX%;"C:\Program Files\Java\javafx-sdk-14.0.1\lib" --add-modules=javafx.controls"
I don't know why.
But it work for me......