cli example is missing the jmods folder.
odinsbane opened this issue · comments
I downloaded the most recent openjfx files and tried to use this example and I get an error about not finding the jmods for javafx. The recent sdk does not include any jmod files and I need to include --module-path $FX_SDK:$FX_JMODS to build/run the program.
Sorry, I included both of them, but it appears I need to compile with the jmods folder and run the skd/lib folder so the error is that the javac part points to the sdk, but it should point to the jmods.
To do the non-modular example I also need to use information from this post:
https://stackoverflow.com/a/52631238/2067492
And create a main class that doesn't contain any javafx stuff.
Yes but your example uses the LIBS for both javac and java it is a small fix in your readme.md to make it correct.
From the readme..
Compile:
javac --module-path $PATH_TO_FX --add-modules=javafx.controls HelloFX.java
Okay, on the page you reference, they say you can use either, but when I tried it I had to use the jmods directory to compile. Ill look at it again later and see if I did something else incorrect.
I started fresh, and it worked just the sdk folder.
Thank you for your examples.