Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LWJGL not found in classpath for early versions #185

Open
CodeUnderscoreRocker opened this issue Oct 27, 2023 · 7 comments
Open

LWJGL not found in classpath for early versions #185

CodeUnderscoreRocker opened this issue Oct 27, 2023 · 7 comments
Labels
triage We are trying to categorize this issue or missing info to do so

Comments

@CodeUnderscoreRocker
Copy link

I put this command in the terminal:
python3.11 -m portablemc start a1.1.0
And received a message in the terminal that LWGL couldn't be found! As the launcher normal takes care of the java classpath, I would think this is a bug. I also manually tried adding lwjgl to the classpath env variable to no avail.

Here is the output of that command (with private info taken out):

[  OK  ] Resolved version a1.1.0.
[  OK  ] Loaded version JAR.
[  OK  ] Checked 749 assets.
[  OK  ] Loaded logger.
[  OK  ] Loaded 11 libraries.
[  OK  ] Loaded Mojang Java 8u74.
Oct 27, 2023 12:17:14 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Using tweak class name net.minecraft.launchwrapper.VanillaTweaker
Oct 27, 2023 12:17:15 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Launching wrapped minecraft
28
Turning of ImageIO disk-caching
Loading current icons for window from: /Users/*****************/Library/Application Support/minecraft/assets/virtual/pre-1.6/icons/icon_16x16.png and /Users/******************/Library/Application Support/minecraft/assets/virtual/pre-1.6/icons/icon_32x32.png
javax.imageio.IIOException: Can't read input file!
	at javax.imageio.ImageIO.read(ImageIO.java:1301)
	at net.minecraft.launchwrapper.injector.VanillaTweakInjector.loadIcon(VanillaTweakInjector.java:130)
	at net.minecraft.launchwrapper.injector.VanillaTweakInjector.loadIconsOnFrames(VanillaTweakInjector.java:107)
	at net.minecraft.launchwrapper.injector.VanillaTweakInjector.inject(VanillaTweakInjector.java:94)
	at net.minecraft.client.Minecraft.main(SourceFile:1375)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
Setting gameDir to: /Users/*************************/Library/Application Support/minecraft
Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
	at java.lang.Runtime.loadLibrary0(Runtime.java:870)
	at java.lang.System.loadLibrary(System.java:1122)
	at org.lwjgl.Sys$1.run(Sys.java:73)
	at java.security.AccessController.doPrivileged(Native Method)
	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 org.lwjgl.opengl.Display.<clinit>(Display.java:135)
	at net.minecraft.client.Minecraft.a(SourceFile:148)
	at net.minecraft.client.Minecraft.run(SourceFile:554)
	at java.lang.Thread.run(Thread.java:745)
@mindstorm38
Copy link
Owner

What is the launcher version (portablemc show about)? And on what operating system/architecture is that?

@CodeUnderscoreRocker
Copy link
Author

What is the launcher version (portablemc show about)? And on what operating system/architecture is that?

It is on macOS Ventura 13.6 running on a mid-2017 iMac with a x86 Intel Core i5 processor.

@CodeUnderscoreRocker
Copy link
Author

Here is the output of the show about command:

Version: 3.3.1
Authors: Théo Rozier contact@theorozier.fr, Github contributors
Website: https://github.com/mindstorm38/portablemc
License: PortableMC Copyright (C) 2021-2023 Théo Rozier
This program comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
See https://www.gnu.org/licenses/gpl-3.0.html.

@CodeUnderscoreRocker
Copy link
Author

I'll update my copy and try again.

@CodeUnderscoreRocker
Copy link
Author

Still doesn't work due to the same error.
(I updated to 4.0.3)

@mindstorm38
Copy link
Owner

Perfect, thank you for the details! I wonder if macOS is supported in these older LWJGL release, I'll check this

@mindstorm38
Copy link
Owner

Can you tell me which files are present in the .minecraft/bin/<UUID>/ directory that is created? It might also be useful to have the verbose output activated on the launcher (-vv argument).

@mindstorm38 mindstorm38 added the triage We are trying to categorize this issue or missing info to do so label Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage We are trying to categorize this issue or missing info to do so
Projects
None yet
Development

No branches or pull requests

2 participants