-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
When launching any Minecraft version after 1.18.2 through the API, the game doesn't launch and returns this error in the output stream:
[22:39:08] [Datafixer Bootstrap/INFO]: 198 Datafixer optimizations took 308 milliseconds
[22:39:10] [Render thread/INFO]: [STDERR]: java.lang.NoClassDefFoundError: Could not initialize class com.mojang.blaze3d.systems.RenderSystem
[22:39:10] [Render thread/INFO]: [STDERR]: at ab.a(SourceFile:66)
[22:39:10] [Render thread/INFO]: [STDERR]: at evi.a(SourceFile:2605)
[22:39:10] [Render thread/INFO]: [STDERR]: at evi.a(SourceFile:2580)
[22:39:10] [Render thread/INFO]: [STDERR]: at net.minecraft.client.main.Main.main(SourceFile:233)
[22:39:10] [Render thread/INFO]: [STDERR]: Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl.so [in thread "Render thread"]
[22:39:10] [Render thread/INFO]: [STDERR]: at org.lwjgl.system.Library.loadSystem(Library.java:174)
[22:39:10] [Render thread/INFO]: [STDERR]: at org.lwjgl.system.Library.loadSystem(Library.java:64)
[22:39:10] [Render thread/INFO]: [STDERR]: at org.lwjgl.system.Library.<clinit>(Library.java:52)
[22:39:10] [Render thread/INFO]: [STDERR]: at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:100)
[22:39:10] [Render thread/INFO]: [STDERR]: at eoz.<clinit>(SourceFile:8)
[22:39:10] [Render thread/INFO]: [STDERR]: at epw.<init>(SourceFile:49)
[22:39:10] [Render thread/INFO]: [STDERR]: at eqd.<init>(SourceFile:33)
[22:39:10] [Render thread/INFO]: [STDERR]: at com.mojang.blaze3d.systems.RenderSystem.<clinit>(SourceFile:51)
[22:39:10] [Render thread/INFO]: [STDERR]: at net.minecraft.client.main.Main.main(SourceFile:220)
Here's a bit of the code I'm using
File workingDirectory = new File(Platform.getCurrentPlatform().getWorkingDirectory().getPath());
MinecraftLauncherBackend mcLauncherBackend = new MinecraftLauncherBackend(workingDirectory);
System.out.println(mcLauncherBackend.getVersionList());
String version = "1.20.4";
mcLauncherBackend.updateMinecraft(version, null);
ProcessBuilder mcProcessBuilder = mcLauncherBackend.launchMinecraft(loginSession, version);
File output;
output = new File("./temp.txt");
System.out.println(output.getAbsolutePath());
mcProcessBuilder.redirectOutput(output);
mcProcessBuilder.start();
System.out.println(workingDirectory);
System.out.println(Platform.getCurrentPlatform().getWorkingDirectory());
It launches fine when using 1.18.2 and versions below. I honestly don't know if I'm doing something wrong, or if there's something up with the api.
Metadata
Metadata
Assignees
Labels
No labels