Jump to content

java.lang.NoSuchFieldException: minecraftDir Error


Taji34

Recommended Posts

I followed the instructions found here: http://www.minecraftforge.net/wiki/NetBeans but when I try to run Minecraft in Netbeans I get the following error:

java.lang.NoSuchFieldException: minecraftDir
at java.lang.Class.getDeclaredField(Class.java:1899)
at Start.main(Start.java:17)

I haven't edited anything with Minecraft yet, I was just checking to make sure it ran correctly. I am using the recommended build of forge (as of Oct 15, build 303). What's wrong? Did I do something wrong somewhere? Thanks for your help.

Link to comment
Share on other sites

So I did some snooping around and looked at the MCP tutorial and figured out that I needed to change some settings, but now it runs but then give out an error message:

2012-10-15 21:08:48 [iNFO] [ForgeModLoader] Forge Mod Loader version 3.1.35.394 for Minecraft client:1.3.2, server:1.3.2 loading
2012-10-15 21:08:48 [iNFO] [ForgeModLoader] Downloading file http://files.minecraftforge.net/fmllibs/argo-2.25.jar
2012-10-15 21:08:49 [iNFO] [ForgeModLoader] Download complete
2012-10-15 21:08:49 [iNFO] [ForgeModLoader] Downloading file http://files.minecraftforge.net/fmllibs/guava-12.0.1.jar
2012-10-15 21:08:52 [iNFO] [ForgeModLoader] Download complete
2012-10-15 21:08:52 [iNFO] [ForgeModLoader] Downloading file http://files.minecraftforge.net/fmllibs/asm-all-4.0.jar
2012-10-15 21:08:53 [iNFO] [ForgeModLoader] Download complete
2012-10-15 21:08:54 [iNFO] [sTDERR] java.lang.reflect.InvocationTargetException
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Method.java:601)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.FMLRelauncher.relaunchClient(FMLRelauncher.java:111)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.FMLRelauncher.handleClientRelaunch(FMLRelauncher.java:26)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.main(Minecraft.java:2112)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at Start.main(Start.java:29)
2012-10-15 21:08:54 [iNFO] [sTDERR] Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at java.lang.Runtime.loadLibrary0(Runtime.java:845)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at java.lang.System.loadLibrary(System.java:1084)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at org.lwjgl.Sys$1.run(Sys.java:72)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at java.security.AccessController.doPrivileged(Native Method)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at org.lwjgl.Sys.loadLibrary(Sys.java:81)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at org.lwjgl.Sys.<clinit>(Sys.java:98)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:2423)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.fmlReentry(Minecraft.java:2122)
2012-10-15 21:08:54 [iNFO] [sTDERR] 	... 8 more

Any ideas?

 

EDIT: I figured out my problem! The library path wasn't pointing to the right place, so it couldn't find some files. Thanks for the help!

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.