mojira.dev
MC-131315

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)

:info: Note that the bug here is the Minecraft Launch Wrapper, which is a Minecraft library, and not the modification.

Attachments

Comments 8

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.

  • Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang.

  • Any plugin issues need to be addressed to the creator of the plugin or resource pack.

  • This site is for addressing issues related to the base unmodded Minecraft; Bukkit, Forge, Optifine, modded servers such as The Hive, Overcast, Showbot, Hypixel or any other modded system invalidates your ticket, unless the behavior can be reproduced in Vanilla.

  • Additionally, if you have problems on large-scale modded servers, please report it to their site. It's probably not a bug in Vanilla Minecraft.

@unknown, 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.

@unknown, Java 8 works fine in launching modded Minecraft; Java 10 will fail to load any modded Minecraft.

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

Alawnely

(Unassigned)

Unconfirmed

java10, launchwrapper, modded

Minecraft 1.12.2

Retrieved