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

Old Fabric versions say to be supported in new versions but are not #3472

Closed
Eatham532 opened this issue Dec 16, 2023 · 2 comments
Closed

Old Fabric versions say to be supported in new versions but are not #3472

Eatham532 opened this issue Dec 16, 2023 · 2 comments

Comments

@Eatham532
Copy link

Hi, not exactly sure where to place this bug as I am guessing it is partially due to the metadadta. I stumbled upon this issue when trying to make my own Minecraft launcher and trying to run 1.20.4 with the fabric version of 0.1.0.48.

The metadata says that this version is supported. View url here. However even your own fabric installer cannot install this version.

Tests (All done running 1.20.4 with loader version 0.1.0.48)

When trying to install using fabric installer v0.11.2:

java.lang.NullPointerException  at net.fabricmc.installer.util.Library. (Library.java:37)  at net.fabricmc.installer.client.ClientInstaller.install(ClientInstaller.java:70)  at net.fabricmc.installer.client.ClientHandler.lambda$doInstall$1(ClientHandler.java:100)  at net.fabricmc.installer.client.ClientHandler$$Lambda$26/117298272.run(Unknown Source)  at java.lang.Thread.run(Thread.java:745)

When using my own launcher that does launch the latest Minecraft and fabric version I get the following error:

Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
at net.minecraft.launchwrapper.Launch.(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

I tested with two other launchers. Both fail to launch. The Modrinth launcher doesn't give any logs. But GdLauncher gave a similar response to what I got in my launcher.

Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap') at net.minecraft.launchwrapper.Launch.

@modmuss50
Copy link
Member

Fabric loader only guarentees backwards compatibility, there is no way we can plan for the future. I do see this an issue, and is possibly something we can solve in metadata v3 as detailed here: FabricMC/fabric-meta#25

@modmuss50
Copy link
Member

Going to close this as I dont think there is a lot we can do to dermine what versions are supported or not. Generally always use the latest version.

@modmuss50 modmuss50 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants