B4J Question JavaFX?

Bruce Axtens

Active Member
Licensed User
Longtime User
I expect that this has already been flogged to death but I've exhumed the bones for one more flog.

I've installed the latest B4J. I've created an UI project. I haven't added anything to the default code. I've hit the build/run button. I get a dialog box with
Compile & Rapid Debug (Build: Default):
B4J Version: 9.80
Parsing code.    (0.00s)
    Java Version: 18
Building folders structure.    (0.01s)
Compiling code.    (0.00s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
Compiling generated Java code.    Error
error: module not found: javafx.swing
1 error
only showing the first 1 errors, of 6 total; use -Xmaxerrs if you would like to see more

javac 18.0.1
So now what do I do? Download javafx? Which version? And where do I store it? And ... yeah, you get the idea.

-Bruce
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Irrespective of the java version ( 16,17,18,19 etc ) the file layout should look like

1683191938198.png


then
1683191987918.png

then

1683192021315.png


hope it helps.
 
Upvote 1

Bruce Axtens

Active Member
Licensed User
Longtime User
Thank you, all. Much appreciated.
 
Upvote 0
Top