Tiim Posted July 10, 2013 Posted July 10, 2013 Hello everyone I just setup my development environment with a new version of Forge (789) and added all the Libraries from mcp/jar/libraries to my classpath and set the source folder to be mcp/src/minecraft. So when I launch Minecraft with the Start.java class I get the following NullPointer Exception: Exception in thread "main" java.lang.NullPointerException at java.util.logging.Logger.setParent(Logger.java:1406) at net.minecraft.logging.LogAgent.setupLogger(LogAgent.java:33) at net.minecraft.logging.LogAgent.<init>(LogAgent.java:25) at net.minecraft.client.Minecraft.<init>(Minecraft.java:308) at net.minecraft.client.main.Main.main(Main.java:77) at Start.main(Start.java:68) I have no clue, how I could fix that, because I didn't touch the source directory yet, it is like forges install.bat left it. BTW: I work with IntelliJ IDEA, but I don't think that matters I thank you in advance Quote
Dramak Posted July 10, 2013 Posted July 10, 2013 You need to use the Launcher class as the main method now not Start class. Afaik it's needed to proxy the new minecraft loader Quote
Tiim Posted July 11, 2013 Author Posted July 11, 2013 Thank you for your answer, but unfortunately this gives me another error: Jul 11, 2013 2:17:53 PM net.minecraft.launchwrapper.LogWrapper log INFO: Using tweak class name net.minecraft.launchwrapper.VanillaTweaker Jul 11, 2013 2:17:54 PM net.minecraft.launchwrapper.LogWrapper log SEVERE: Unable to launch java.lang.NoSuchMethodException: net.minecraft.client.Minecraft.main([Ljava.lang.String;) at java.lang.Class.getMethod(Class.java:1622) at net.minecraft.launchwrapper.Launch.launch(Launch.java:54) at net.minecraft.launchwrapper.Launch.main(Launch.java:18) When i look in the Minecraft class, i can't see a main method, should there be one? Quote
Rheel Posted July 11, 2013 Posted July 11, 2013 You should launch with net.minecraft.launchwrapper.Launch. Quote
Tiim Posted July 11, 2013 Author Posted July 11, 2013 That's what I was doing. But I got the error I posted above. The error is just, that there is no main method in net.minecraft.client.Minecraft, so obviously this gets called by the net.minecraft.launchwrapper.Launch class, but doesn't exist. Quote
Rheel Posted July 11, 2013 Posted July 11, 2013 Do you have the program arguments --version 1.6 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.