B4J Question Build Standalone Package error

giga

Well-Known Member
Licensed User
Longtime 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!


B4X:
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
icon1.Initialize(\
src\b4j\example\main.java:60: error: package javafx.scene.image does not exist
_v0.Initialize(ba,"icon1",(javafx.scene.image.Image)(_v5.getObject()),anywheresoftware.b4a.keywords.Common.ArrayToList(_menuitems));
                                             ^
1 error
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
Upvote 0

giga

Well-Known Member
Licensed User
Longtime 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.

1633552321167.png
 
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime 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
Top