-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
jfx17
-
x86_64
-
windows_10
ADDITIONAL SYSTEM INFORMATION :
Windows 10 1909 64bit
OpenJDK 17 (build 17+35-2724)
OpenJFX 17
gradle 7.2
A DESCRIPTION OF THE PROBLEM :
With issueJDK-8264998 and commit https://github.com/openjdk/jfx/commit/02b078a8a00803e03f4d2b5f06552f88dd0d5c00, the Automatic-Module-Name were removed from the empty jars. However, this made the empty jar and the real jar recognized as the same module, and causing exceptions like this:
Error occurred during initialization of boot layer
java.lang.module.FindException: Two versions of module javafx.base found in D:\XXX\build\install\XXX\lib (javafx-base-17.jar and javafx-base-17-win.jar)
REGRESSION : Last worked in version 16.0.2
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a gradle javafx helloworld project, set jfx version to 17, run gradle task installDist, then run the script generated by this task, error message should show up. But with jfx version set to 16, everything is ok.
---------- BEGIN SOURCE ----------
https://github.com/RationalityFrontline/jfx-test
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
https://github.com/openjfx/javafx-gradle-plugin/issues/111#issuecomment-916011880
FREQUENCY : always
Windows 10 1909 64bit
OpenJDK 17 (build 17+35-2724)
OpenJFX 17
gradle 7.2
A DESCRIPTION OF THE PROBLEM :
With issue
Error occurred during initialization of boot layer
java.lang.module.FindException: Two versions of module javafx.base found in D:\XXX\build\install\XXX\lib (javafx-base-17.jar and javafx-base-17-win.jar)
REGRESSION : Last worked in version 16.0.2
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a gradle javafx helloworld project, set jfx version to 17, run gradle task installDist, then run the script generated by this task, error message should show up. But with jfx version set to 16, everything is ok.
---------- BEGIN SOURCE ----------
https://github.com/RationalityFrontline/jfx-test
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
https://github.com/openjfx/javafx-gradle-plugin/issues/111#issuecomment-916011880
FREQUENCY : always
- duplicates
-
JDK-8273754 Re-introduce Automatic-Module-Name in empty jars
- Resolved
- relates to
-
JDK-8264998 Empty Jars shouldn't have Automatic-Module-Name
- Resolved