Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8274103

javafx-base-17.jar and javafx-base-17-win.jar recognized as the same module

XMLWordPrintable

    • 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 issue JDK-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


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: