Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2806

Allow running on JDK 17+

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • Furnace (Container)
    • None

      It would be nice if Forge could run in JDK 17+.

      The following error is shown in the logs while starting Forge in JDK 17:

      Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @10315254
      

      Workaround:

      Execute the following script before running forge:

      export FORGE_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED" 

            Unassigned Unassigned
            rhn-support-ggastald George Gastaldi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: