-
Task
-
Resolution: Obsolete
-
Major
-
None
-
None
-
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"
- causes
-
JBIDE-28082 Forge Java 17 compatibility
- Closed