Unable to launch modded Minecraft with Java 10 due to a bugged Library
I am unable to launch modded Minecraft using the latest Minecraft Launcher with Java 10. I am reporting this bug in the Mojang Bug Tracker because it has something to do with the Minecraft Launch Wrapper.
Here's the last line in the launcher_log.txt:
[0614/144307:INFO:GameCallbacks.cpp(178)] launcher/launcher (main) info Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader[0614/144307:INFO:GameCallbacks.cpp(178)] launcher/launcher (main) info Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Steps to reproduce
Install any modification for Minecraft (OptiFine for example)
Note that the bug here is the Minecraft Launch Wrapper, which is a Minecraft library, and not the modification.
Environment
Windows 10 64-bit
Java Runtime Environment 10.0.1
Created Issue:
Unable to launch modded Minecraft with Java 10
I am unable to launch modded Minecraft using the latest Minecraft Launcher. I am reporting this bug in the Mojang Bug Tracker because it has something to do with the Minecraft Launch Wrapper.
Here's the last line in the launcher_log.txt:
[0614/144307:INFO:GameCallbacks.cpp(178)] launcher/launcher (main) info Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader[0614/144307:INFO:GameCallbacks.cpp(178)] launcher/launcher (main) info Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)Steps to reproduce
Install any modification for Minecraft (OptiFine for example)
Environment
Windows 10 64-bit
Java Runtime Environment 10.0.1
Windows 10 64-bit
Java Runtime Environment 10.0.1
Windows 10 64-bit
Java Runtime Environment 10.0.1
I am unable to launch modded Minecraft using the latest Minecraft Launcher with Java 10. I am reporting this bug in the Mojang Bug Tracker because it has something to do with the Minecraft Launch Wrapper.
Here's the last line in the launcher_log.txt:
[0614/144307:INFO:GameCallbacks.cpp(178)] launcher/launcher (main) info Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader[0614/144307:INFO:GameCallbacks.cpp(178)] launcher/launcher (main) info Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)Steps to reproduce
Install any modification for Minecraft (OptiFine for example)
I am unable to launch modded Minecraft using the latest Minecraft Launcher with Java 10. I am reporting this bug in the Mojang Bug Tracker because it has something to do with the Minecraft Launch Wrapper.
Here's the last line in the launcher_log.txt:
[0614/144307:INFO:GameCallbacks.cpp(178)] launcher/launcher (main) info Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader[0614/144307:INFO:GameCallbacks.cpp(178)] launcher/launcher (main) info Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)Steps to reproduce
Install any modification for Minecraft (OptiFine for example)
Note that the bug here is the Minecraft Launch Wrapper, which is a Minecraft library, and not the modification.
OK, so it's about Java. You haven't answered my question, though. XD
[~iTechieGamer], I learnt that. Thanks!
[~<iTechieGamer>]
Unable to launch modded Minecraft with Java 10 due to a bugged Library
[~iTechieGamer], I've tried over a thousand times
By the way, iTechieGamer, how to link the names to the corresponding persons like you did above? I haven't learnt how to do that yet XD
OK thanks XD
Now can we delete all comments relevant to linking names? XD
Because we still want to show our Minecraft-related questions to the moderators.
What, Java 10 is already out??
Also your Minecraft is modded so... if the vanilla version works fine , then probably you should ask the mod developers for help?
This ticket is invalid as it relates to a modified or 3rd party client, server, or launcher.
Kumasasa, the bug here is the Minecraft Launch Wrapper, not the modification. Note that Minecraft Launch Wrapper is a Minecraft library.
Java 10 will soon take over Java 8, so if this bug won't get fixed, mods will not be able to be played.
(Take note of at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34))
What if the vanilla Minecraft is bugged so that it can no longer compatible with mods? The mods don't get wrong; the part relevant to be compatible with mods in vanilla Minecraft does.
D, Java 8 works fine in launching modded Minecraft; Java 10 will fail to load any modded Minecraft.
https://community.oracle.com/thread/4011800
Minecraft isn't approved to run with Java 9 or Java 10, without or with mods.
Still not a bug.
thought you were talking about fabric api XD