Jump to content

[Resolved] Nullpointer in Logger


Tiim

Recommended Posts

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 :D

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.