Mark Read Well-Known Member Licensed User Longtime User Apr 18, 2019 #1 A new PC with Windows 10 pro 64 bit. I have downloaded the jdk-11.0.1.zip file and extracted it to c:\java\jdk-11.0.1\ B4J is also the newest version. I can run my app in debug mode and create the jar-file but cannot run the jar from a batch file. The batch file: Code: c:\java\jdk-11.0.1\bin\java.exe -jar gCodeSplit.jar Both batch file and gCodeSplit.jar are in a temp directory. The error message is: Error: JavaFX runtime components are missing, and are required to run the application. I have downloaded javaFX from Gluon (zip file). How to proceed? Many thanks.
A new PC with Windows 10 pro 64 bit. I have downloaded the jdk-11.0.1.zip file and extracted it to c:\java\jdk-11.0.1\ B4J is also the newest version. I can run my app in debug mode and create the jar-file but cannot run the jar from a batch file. The batch file: Code: c:\java\jdk-11.0.1\bin\java.exe -jar gCodeSplit.jar Both batch file and gCodeSplit.jar are in a temp directory. The error message is: Error: JavaFX runtime components are missing, and are required to run the application. I have downloaded javaFX from Gluon (zip file). How to proceed? Many thanks.
Erel B4X founder Staff member Licensed User Longtime User Apr 18, 2019 #2 This is expected. Java 11 doesn't support executable jars (for UI apps). You need to use B4JPackager11 to create an package with an embedded Java. Upvote 0
This is expected. Java 11 doesn't support executable jars (for UI apps). You need to use B4JPackager11 to create an package with an embedded Java.
Mark Read Well-Known Member Licensed User Longtime User Apr 18, 2019 #3 Thank you for your prompt reply Erel. I missed that in the forum. Just to complete this thread: The B4JPackager11 can be found here. The "run.exe" was fine for me. Don't forget to change line 8 accordingly. Code: Private InputJar As String = "d:\temp\gCodeSplit.jar" I assume I can delete the JavaFX zip file as it is not used. Many thanks. Upvote 0
Thank you for your prompt reply Erel. I missed that in the forum. Just to complete this thread: The B4JPackager11 can be found here. The "run.exe" was fine for me. Don't forget to change line 8 accordingly. Code: Private InputJar As String = "d:\temp\gCodeSplit.jar" I assume I can delete the JavaFX zip file as it is not used. Many thanks.
Erel B4X founder Staff member Licensed User Longtime User Apr 18, 2019 #4 mark35at said: I assume I can delete the JavaFX zip file as it is not used. Click to expand... Which zip? Upvote 0
mark35at said: I assume I can delete the JavaFX zip file as it is not used. Click to expand... Which zip?
Mark Read Well-Known Member Licensed User Longtime User Apr 18, 2019 #5 The "openjfx-11.0.2_windows-x64_bin-sdk.zip" which I downloaded from Gluon. It is not required. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 18, 2019 #6 True. A similar package is included in the one downloaded from: https://www.b4x.com/b4j.html Upvote 0