• 0

    posted a message on Minecraft modpack Error: Could not find or load main class =-XX:G1NewSizePercent=20 Caused by: java.lang.ClassNotFoundException:

    After unistalling and reinstalling twitch, here is the long error message I get:


    [16:32:11] [main/FATAL] [FML]: A CRITICAL PROBLEM OCCURRED INITIALIZING MINECRAFT - LIKELY YOU HAVE AN INCORRECT VERSION FOR THIS FML
    [16:32:11] [main/ERROR] [LaunchWrapper]: Unable to launch
    java.lang.RuntimeException: java.lang.ClassNotFoundException: net.minecraftforge.fml.common.Loader
    at net.minecraftforge.fml.common.launcher.FMLDeobfTweaker.injectIntoClassLoader(FMLDeobfTweaker.java:67) ~[forge-1.12.2-14.23.5.2838.jar:?]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    Caused by: java.lang.ClassNotFoundException: net.minecraftforge.fml.common.Loader
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
    at java.lang.Class.forName0(Native Method) ~[?:1.8.0_251]
    at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_251]
    at net.minecraftforge.fml.common.launcher.FMLDeobfTweaker.injectIntoClassLoader(FMLDeobfTweaker.java:56) ~[forge-1.12.2-14.23.5.2838.jar:?]
    ... 2 more
    Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:521) ~[JustEnoughIDs-1.0.2-26.jar:?]
    at org.spongepowered.asm.mixin.transformer.Proxy.transform(Proxy.java:72) ~[JustEnoughIDs-1.0.2-26.jar:?]
    at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
    at java.lang.Class.forName0(Native Method) ~[?:1.8.0_251]
    at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_251]
    at net.minecraftforge.fml.common.launcher.FMLDeobfTweaker.injectIntoClassLoader(FMLDeobfTweaker.java:56) ~[forge-1.12.2-14.23.5.2838.jar:?]
    ... 2 more
    Caused by: java.lang.AbstractMethodError: org.dimdev.vanillafix.ModCompatibilityMixinPlugin.preApply(Ljava/lang/String;Lorg/spongepowered/asm/lib/tree/ClassNode;Ljava/lang/String;Lorg/spongepowered/asm/mixin/extensibility/IMixinInfo;)V
    at org.spongepowered.asm.mixin.transformer.MixinInfo.preApply(MixinInfo.java:1212) ~[JustEnoughIDs-1.0.2-26.jar:?]
    at org.spongepowered.asm.mixin.transformer.MixinTargetContext.preApply(MixinTargetContext.java:1134) ~[JustEnoughIDs-1.0.2-26.jar:?]
    at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:275) ~[JustEnoughIDs-1.0.2-26.jar:?]
    at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:353) ~[JustEnoughIDs-1.0.2-26.jar:?]
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.apply(MixinTransformer.java:724) ~[JustEnoughIDs-1.0.2-26.jar:?]
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.applyMixins(MixinTransformer.java:703) ~[JustEnoughIDs-1.0.2-26.jar:?]
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:509) ~[JustEnoughIDs-1.0.2-26.jar:?]
    at org.spongepowered.asm.mixin.transformer.Proxy.transform(Proxy.java:72) ~[JustEnoughIDs-1.0.2-26.jar:?]
    at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
    at java.lang.Class.forName0(Native Method) ~[?:1.8.0_251]
    at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_251]
    at net.minecraftforge.fml.common.launcher.FMLDeobfTweaker.injectIntoClassLoader(FMLDeobfTweaker.java:56) ~[forge-1.12.2-14.23.5.2838.jar:?]
    ... 2 more
    Exception in thread "main" [16:32:11] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException
    [16:32:11] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:49)
    [16:32:11] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at java.lang.SecurityManager.checkExit(Unknown Source)
    [16:32:11] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at java.lang.Runtime.exit(Unknown Source)
    [16:32:11] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at java.lang.System.exit(Unknown Source)
    [16:32:11] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:138)
    [16:32:11] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

    Posted in: Java Edition Support
  • 0

    posted a message on Minecraft modpack Error: Could not find or load main class =-XX:G1NewSizePercent=20 Caused by: java.lang.ClassNotFoundException:

    I tried to delete the JVM arguments in the twitch app but it always comes back and I don't know why

    When I put the default one, I get this

    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.<init>(Launch.java:34)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

    Posted in: Java Edition Support
  • 0

    posted a message on Minecraft modpack Error: Could not find or load main class =-XX:G1NewSizePercent=20 Caused by: java.lang.ClassNotFoundException:

    I've been looking for a way to launch faster my modpacks on the twitch app, and I found a thread telling me to put JVM arguments. Since this moment, a couple of different errors happened and i fixed most of them. But even after 3 hours of searching, I couldn't find a way to solve this error:


    Error: Could not find or load main class =-XX:G1NewSizePercent=20

    Caused by: java.lang.ClassNotFoundException: =-XX:G1NewSizePer


    I've seen some threads talking about coding and advanced stuff but I don't know anything about coding so if I could have an answer I could understand, it would be greatly appriciated.

    Posted in: Java Edition Support
  • To post a comment, please or register a new account.