OS Edgecase: MacOS Catalina (10.15.2)
See original GitHub issueHello! I just tried to use example from this repository and received exception after launch:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path: [/Users/Tobishua/tests/minecraft/natives/1.12.2] at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2670) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:806) at java.base/java.lang.System.loadLibrary(System.java:1909) at org.lwjgl.Sys$1.run(Sys.java:73) at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) at org.lwjgl.Sys.loadLibrary(Sys.java:95) at org.lwjgl.Sys.<clinit>(Sys.java:112) at bib.I(SourceFile:2825) at net.minecraft.client.main.Main.main(SourceFile:38)
Here is my test script (I’ve leave example code from this repository): `const { Client, Authenticator } = require(‘minecraft-launcher-core’); const launcher = new Client();
let opts = { clientPackage: null, // For production launchers, I recommend not passing // the getAuth function through the authorization field and instead // handling authentication outside before you initialize // MCLC so you can handle auth based errors and validation! authorization: Authenticator.getAuth(“---------”, “---------”), root: “./minecraft”, os: “osx”, version: { number: “1.12.2”, type: “release” }, memory: { max: “4000”, min: “1000” } }
launcher.launch(opts);
launcher.on(‘debug’, (e) => console.log(e)); launcher.on(‘data’, (e) => console.log(e));`
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
Looks like it’s failing to add the
lwjgl
native to the native folder. Will need to look into, not sure how long it will take since I don’t have access to a system with Catalina. Will keep you posted.Leaving open just incase another person experiances this issue