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

0
12 comments
Avatar
Permanently deleted user

[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

0

You can add these parameters in the VM Options field of the run/debug configuration.

0
Avatar
Permanently deleted user

Error appears

Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.base not found

0

Make sure everything is configured according to https://stackoverflow.com/a/53388434/104891.

0
Avatar
Permanently deleted user

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

0

--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

0
Avatar
Permanently deleted user

I can't believe it - it works :))))

Thank you very much - you make my day 

0
Avatar
Permanently deleted user

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 ??? :(

0

Module path is not quoted and contains spaces. Either properly quote it or move JavaFX into a new location without spaces.

0
Avatar
Permanently deleted user

Now it works again - thanks second time :))

0
Avatar
Permanently deleted user

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......

0

Please sign in to leave a comment.