Closed manuthebyte closed 2 years ago
Ok I changed the dependencies to that:
dependencies {
compile group: "org.lwjgl", name: "lwjgl", version: "$lwjglVersion"
compile group: "org.lwjgl", name: "lwjgl", version: "$lwjglVersion", classifier: "${project.ext.lwjglNatives}"
compile group: "org.lwjgl", name: "lwjgl-opengl", version: "$lwjglVersion"
compile group: "org.lwjgl", name: "lwjgl-opengl", version: "$lwjglVersion", classifier: "${project.ext.lwjglNatives}"
}
But now I am getting this error:
[20:23:09] [main/ERROR]: Unable to launch
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_342]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_342]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_342]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_342]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_342]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_342]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_342]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_342]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStart.main(GradleStart.java:26) [start/:?]
Caused by: java.lang.NoClassDefFoundError: org/lwjgl/opengl/OpenGLException
at net.minecraft.client.main.Main.main(SourceFile:41) ~[Main.class:?]
... 12 more
Caused by: java.lang.ClassNotFoundException: org.lwjgl.opengl.OpenGLException
at java.net.URLClassLoader.findClass(URLClassLoader.java:387) ~[?:1.8.0_342]
at java.lang.ClassLoader.loadClass(ClassLoader.java:419) ~[?:1.8.0_342]
Exception in thread "main" at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) ~[?:1.8.0_342]
at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ~[?:1.8.0_342]
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:106) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:419) ~[?:1.8.0_342]
at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ~[?:1.8.0_342]
at net.minecraft.client.main.Main.main(SourceFile:41) ~[Main.class:?]
... 12 more
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.reflect.InvocationTargetException
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.reflect.Method.invoke(Method.java:498)
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: at GradleStart.main(GradleStart.java:26)
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:30)
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.SecurityManager.checkExit(SecurityManager.java:761)
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.Runtime.exit(Runtime.java:108)
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.System.exit(System.java:973)
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:138)
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
[20:23:09] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1061]: ... 6 more
The missing exception classes are from LWJGL 2, they do not exist in LWJGL 3.
Yeah, the problem was that Minecraft 1.8.9 is delivering LWJGL2.9.2 and the native macOS ARM support is only above LWJGL3.3. So I can't update because it's calling old classes.
I fixed it now and have created a repo for it, for anyone that has the same problem: forge-applesilicon-fix-1.8.9
Version
3.3.1
Platform
macOS arm64
JDK
Zulu OpenJDK 1.8
Module
LWJGL Core, OpenGL
Bug description
Hi there!
I want to make a minecraft mod with forge, but when I try to start the game, it throws me back the error
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
My build.gradle:
Stacktrace or crash log output