Jump to content

Recommended Posts

Posted

Hello,

 

I've been having trouble running my Minecraft Forge mod through my IDE (Netbeans). I'm getting this error that it can't find the lwjgl library, and it's closing down because of this. I've searched the error up and read every solution, but nothing seems to work. D:

 

I tried putting this argument in the JVM section of Project Properties -> Manage Built-In Tasks -> Run:

 

-Djava.library.path="Volumes\Roberts HD\Robert\Library\Application Support\minecraft\bin\natives"

 

That should direct the java.library.path to the location with the lwjgl jars, right? Is there anything to be done? Thanks. Keep in mind this only happens when attempting to run the mod inside the IDE.

 

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_55]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_55]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_55]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886) ~[?:1.7.0_55]

at java.lang.Runtime.loadLibrary0(Runtime.java:849) ~[?:1.7.0_55]

at java.lang.System.loadLibrary(System.java:1088) ~[?:1.7.0_55]

at org.lwjgl.Sys$1.run(Sys.java:73) ~[lwjgl-2.9.1-nightly-20131017.jar:?]

at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_55]

at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) ~[lwjgl-2.9.1-nightly-20131017.jar:?]

at org.lwjgl.Sys.loadLibrary(Sys.java:95) ~[lwjgl-2.9.1-nightly-20131017.jar:?]

at org.lwjgl.Sys.<clinit>(Sys.java:112) ~[lwjgl-2.9.1-nightly-20131017.jar:?]

at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:2691) ~[Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:40) ~[Main.class:?]

... 6 more

Posted

...

Go into your forge directory (where your build.gradle is).

Open the build folder.

Then open the natives folder. THAT FOLDER is where the natives are and where you need to point your IDE.

 

...

 

You don't seem to understand. There is no "natives" folder. :P

 

aed96b153a5104635c44f66658b63c86.png

 

5d16dd222044a37fe9300a051ba2a467.png

 

be27477d7b5302beaa99c3254529cff9.png

 

._.

Posted

Try running gradlew runClient. That should definitely set up the natives if it hasn't already.

If that doesn't work try starting from scratch. This all looks pretty weird to me and shouldn't happen.

 

I tried it, and this is what I got:

 

iMac-5:forge Robert$ ./gradlew runClient

****************************

Powered By MCP:           

http://mcp.ocean-labs.de/ 

Searge, ProfMobius, Fesh0r,

R4wk, ZeuX, IngisKahn     

MCP Data version : unknown

****************************

:compileApiJava UP-TO-DATE

:processApiResources UP-TO-DATE

:apiClasses UP-TO-DATE

:sourceMainJava

:compileJava

warning: [options] bootstrap class path not set in conjunction with -source 1.6

1 warning

:processResources UP-TO-DATE

:classes

:jar

:runClient

[10:28:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[10:28:09] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[10:28:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[10:28:09] [main/INFO] [FML]: Forge Mod Loader version 7.2.207.1110 for Minecraft 1.7.2 loading

[10:28:09] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_55, running on Mac OS X:x86_64:10.9.3, installed at /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/jre

[10:28:09] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[10:28:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[10:28:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[10:28:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[10:28:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[10:28:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[10:28:09] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[10:28:10] [main/ERROR] [FML]: The minecraft jar file:/Volumes/Roberts%20HD/Robert/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1110/forgeSrc-1.7.2-10.12.1.1110.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!

[10:28:10] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!

[10:28:10] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/Volumes/Roberts%20HD/Robert/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1110/forgeSrc-1.7.2-10.12.1.1110.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it

[10:28:10] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[10:28:10] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[10:28:10] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[10:28:10] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[10:28:15] [main/ERROR] [LaunchWrapper]: Unable to launch

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_55]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_55]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_55]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886) ~[?:1.7.0_55]

at java.lang.Runtime.loadLibrary0(Runtime.java:849) ~[?:1.7.0_55]

at java.lang.System.loadLibrary(System.java:1088) ~[?:1.7.0_55]

at org.lwjgl.Sys$1.run(Sys.java:73) ~[lwjgl-2.9.1-nightly-20131017.jar:?]

at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_55]

at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) ~[lwjgl-2.9.1-nightly-20131017.jar:?]

at org.lwjgl.Sys.loadLibrary(Sys.java:95) ~[lwjgl-2.9.1-nightly-20131017.jar:?]

at org.lwjgl.Sys.<clinit>(Sys.java:112) ~[lwjgl-2.9.1-nightly-20131017.jar:?]

at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:2691) ~[Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:40) ~[Main.class:?]

... 6 more

 

BUILD SUCCESSFUL

 

Total time: 33.381 secs

Posted

Very weird. Try setting up everything fresh.

 

Okay, so I downloaded a new version of Forge. I did cd <forge directory>, and then ./gradlew setupDecompWorkspace. After it was done building, I looked in build, and saw there was a natives directory (yay!). After launching NetBeans, opening the Forge grade project (using the Gradle plugin) and copying my packages over to the new project, I configured the command args for "Run", setting them to "runClient." I clicked "Run," and it launched! :D

 

But it was too good to be true. :( I closed it, did "Build and Clean," then "Run." To my surprise, I got the familiar error about libraries. I checked back in the build directory, and (gasp), the natives folder had vanished! So question: Is Build and Clean the culprit?

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.