B4J Question Build Standalone Package error


Well-Known Member
Licensed User
I am trying to create a StandAlone package and getting this error. Based on the error it is referring to this line of code.

Line 38:
icon1.Initialize("icon1", GreenImage, MenuItems) 'Initializes the icon on the system tray
I was originally using an older JDK version prior to 11+ and had no issues compiling, but now that I switched to 11+ It won't compile.

Any ideas would be helpful.

Thanks as always!

B4J Version: 9.10
Parsing code.    (0.00s)
    Java Version: 11
Building folders structure.    (0.01s)
Compiling code.    (0.03s)
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.00s)
Compiling generated Java code.    Error
B4J line: 38
src\b4j\example\main.java:60: error: package javafx.scene.image does not exist
1 error


Well-Known Member
Licensed User
Good catch but still won't work. I originally got the JDK from Java directly, but went back to B4X and downloaded the one in the link you gave me, but same issue.
I double checked my configuration paths to the bin folder in the jdk-11.0.1 directory. As you can see in the screen pic the javafx directory shows there with content.

Upvote 0


Well-Known Member
Licensed User
Did you unpack it with windows zip? According to the instructions

Download the zip and unpack it. C:\java is a good place for it. It is recommended to use a tool such as 7-Zip to unzip the large package. Windows Explorer might fail to extract it properly.
Upvote 0