Just today, my Eclipse upgraded automatically, then suddenly it wont open using existing JDK 8.
I am forced to upgrade to JDK 11.
Installed from Oracle JDK 11, and eclipse back to normal.
However, I examined that :
1. When exporting library to XML, Doclet showed some red warning :
javadoc: warning - The old Doclet and Taglet APIs in the packages
com.sun.javadoc, com.sun.tools.doclets and their implementations
are planned to be removed in a future JDK release. These
components have been superseded by the new APIs in jdk.javadoc.doclet.
Users are strongly recommended to migrate to the new APIs.
2. Then I tried to recompile a project with JDK 11 , downloaded from B4X.
Note : This project is created using B4XPages, and was running normally with JDK 8. This project use library from number 1 above.
I noticed B4J only can compile using javac OpenJDK 11 from this site.
When I tried using javac from Oracle JDK 11 , B4J showed some missing.
3. I ran the program from B4J in Debug and Release, can show normally.
4. But when I double click released JAR, nothing showed. It's like the JAR is not executing
I put JAVA_HOME environment variable and System Path of WIndows 10 to B4J JDK 11 path .
From some website , there is a hint to add OpenJDKPath environment variable , I also set to B4J JDK 11 path
From some website, also there is a hint to add PATH_TO_FX environment variable, I also set to B4J JDK 11 javafx lib path
However this released JAR is not executing .
Rebooting PC also has been done, but no affect.
5. From B4J, I tried to compile to Standalone Package.
The EXE result also wont show anything
then I tried run_debug.bat , and showed this :
C:\Users\rdkartono\Documents\B4J project\VC520PCControl\B4J\Objects\temp\build>cd bin
C:\Users\rdkartono\Documents\B4J project\VC520PCControl\B4J\Objects\temp\build\bin>java.exe @release_java_modules.txt -m b4j/gtc.vc520pccontrol.main
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.base specified to --add-opens
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: java.desktop specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.base specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.base specified to --add-opens
Error: Unable to load main class gtc.vc520pccontrol.main in module b4j
java.lang.NoClassDefFoundError: javafx/application/Application
C:\Users\rdkartono\Documents\B4J project\VC520PCControl\B4J\Objects\temp\build\bin>pause
Press any key to continue . . .
Strange is, I tried a very new B4XPage project, which only showing a button and message box Hello, it can run very normal both in JAR and in Standalone EXE
What might wrong ?
Please advice. I felt pissed clicking Eclipse auto upgrade in the first place, causing me these unnecessary problems .
I am forced to upgrade to JDK 11.
Installed from Oracle JDK 11, and eclipse back to normal.
However, I examined that :
1. When exporting library to XML, Doclet showed some red warning :
javadoc: warning - The old Doclet and Taglet APIs in the packages
com.sun.javadoc, com.sun.tools.doclets and their implementations
are planned to be removed in a future JDK release. These
components have been superseded by the new APIs in jdk.javadoc.doclet.
Users are strongly recommended to migrate to the new APIs.
2. Then I tried to recompile a project with JDK 11 , downloaded from B4X.
Note : This project is created using B4XPages, and was running normally with JDK 8. This project use library from number 1 above.
I noticed B4J only can compile using javac OpenJDK 11 from this site.
When I tried using javac from Oracle JDK 11 , B4J showed some missing.
3. I ran the program from B4J in Debug and Release, can show normally.
4. But when I double click released JAR, nothing showed. It's like the JAR is not executing
I put JAVA_HOME environment variable and System Path of WIndows 10 to B4J JDK 11 path .
From some website , there is a hint to add OpenJDKPath environment variable , I also set to B4J JDK 11 path
From some website, also there is a hint to add PATH_TO_FX environment variable, I also set to B4J JDK 11 javafx lib path
However this released JAR is not executing .
Rebooting PC also has been done, but no affect.
5. From B4J, I tried to compile to Standalone Package.
The EXE result also wont show anything
then I tried run_debug.bat , and showed this :
C:\Users\rdkartono\Documents\B4J project\VC520PCControl\B4J\Objects\temp\build>cd bin
C:\Users\rdkartono\Documents\B4J project\VC520PCControl\B4J\Objects\temp\build\bin>java.exe @release_java_modules.txt -m b4j/gtc.vc520pccontrol.main
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.base specified to --add-opens
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.controls specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: java.desktop specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.base specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.graphics specified to --add-opens
WARNING: Unknown module: javafx.base specified to --add-opens
Error: Unable to load main class gtc.vc520pccontrol.main in module b4j
java.lang.NoClassDefFoundError: javafx/application/Application
C:\Users\rdkartono\Documents\B4J project\VC520PCControl\B4J\Objects\temp\build\bin>pause
Press any key to continue . . .
Strange is, I tried a very new B4XPage project, which only showing a button and message box Hello, it can run very normal both in JAR and in Standalone EXE
What might wrong ?
Please advice. I felt pissed clicking Eclipse auto upgrade in the first place, causing me these unnecessary problems .