hatzisn Expert Licensed User Longtime User Aug 6, 2020 #1 Hi everyone, I have installed the OpenJDK11+OpenJFX11 from the suggested link in the B4J and B4A product page. I unzipped it, I updated my paths in B4J and compiled successfully an Application. I exited B4J and tried to run the jar by double clicking on it but I see a black command prompt windows which closes and nothing runs. I tried with this tutorial to set the JAVA_HOME and I had no success: https://javatutorial.net/set-java-home-windows-10 Testing if it runs the app I see the same (black cmd and closes) Tried to test the variables and java and here is what I've got. Spoiler: cmd checking the java environment C:\Users\Nikos>echo %JAVA_HOME% C:\B4X\Java\jdk-11.0.1 C:\Users\Nikos>javac -version javac 11.0.1 C:\Users\Nikos>java -version Error: opening registry key 'Software\JavaSoft\Java Runtime Environment' Error: could not find java.dll Error: Could not find Java SE Runtime Environment. C:\Users\Nikos>java Error: opening registry key 'Software\JavaSoft\Java Runtime Environment' Error: could not find java.dll Error: Could not find Java SE Runtime Environment. C:\Users\Nikos>java -jar c:\B4X\Tools\JsonTree.jar Error: opening registry key 'Software\JavaSoft\Java Runtime Environment' Error: could not find java.dll Error: Could not find Java SE Runtime Environment. C:\Users\Nikos>cd\B4X\Java\Jdk-11.0.1\bin C:\B4X\Java\jdk-11.0.1\bin>java -jar c:\B4X\Tools\JsonTree.jar Error: JavaFX runtime components are missing, and are required to run this application C:\B4X\Java\jdk-11.0.1\bin> Any suggestions?
Hi everyone, I have installed the OpenJDK11+OpenJFX11 from the suggested link in the B4J and B4A product page. I unzipped it, I updated my paths in B4J and compiled successfully an Application. I exited B4J and tried to run the jar by double clicking on it but I see a black command prompt windows which closes and nothing runs. I tried with this tutorial to set the JAVA_HOME and I had no success: https://javatutorial.net/set-java-home-windows-10 Testing if it runs the app I see the same (black cmd and closes) Tried to test the variables and java and here is what I've got. Spoiler: cmd checking the java environment C:\Users\Nikos>echo %JAVA_HOME% C:\B4X\Java\jdk-11.0.1 C:\Users\Nikos>javac -version javac 11.0.1 C:\Users\Nikos>java -version Error: opening registry key 'Software\JavaSoft\Java Runtime Environment' Error: could not find java.dll Error: Could not find Java SE Runtime Environment. C:\Users\Nikos>java Error: opening registry key 'Software\JavaSoft\Java Runtime Environment' Error: could not find java.dll Error: Could not find Java SE Runtime Environment. C:\Users\Nikos>java -jar c:\B4X\Tools\JsonTree.jar Error: opening registry key 'Software\JavaSoft\Java Runtime Environment' Error: could not find java.dll Error: Could not find Java SE Runtime Environment. C:\Users\Nikos>cd\B4X\Java\Jdk-11.0.1\bin C:\B4X\Java\jdk-11.0.1\bin>java -jar c:\B4X\Tools\JsonTree.jar Error: JavaFX runtime components are missing, and are required to run this application C:\B4X\Java\jdk-11.0.1\bin> Any suggestions?
Erel B4X founder Staff member Licensed User Longtime User Aug 6, 2020 #2 Executable jars are not supported by Java 11+. Best way to distribute your apps is with: https://www.b4x.com/android/forum/t...distribute-standalone-ui-apps.117880/#content Upvote 0
Executable jars are not supported by Java 11+. Best way to distribute your apps is with: https://www.b4x.com/android/forum/t...distribute-standalone-ui-apps.117880/#content
hatzisn Expert Licensed User Longtime User Aug 6, 2020 #3 Is this fact (non supported executable jars) valid also for Linux and Mac? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 7, 2020 #4 Yes. JavaFX is not integrated in Java 11+ so executable jars will not work. You need to use the packager. The advantage is that the package doesn't depend on anything (unlike the compiled jar). Upvote 0
Yes. JavaFX is not integrated in Java 11+ so executable jars will not work. You need to use the packager. The advantage is that the package doesn't depend on anything (unlike the compiled jar).