LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: makssof on July 10, 2016, 21:56:38

Title: Failed to locate resource: lwjgl32.dll
Post by: makssof on July 10, 2016, 21:56:38
Hello. I have a problem with complilling my application.
I use Eclipse Luna (Also, try in Neon, Mars.(1|2)), and LWJGL 3 (.0.0 Build 90 ( Also try .0.1 build 8 ))
And with starting i get this error (via "-Dorg.lwjgl.util.Debug=true"):
[LWJGL] Version: 3.0.0 build 90
[LWJGL] OS: Windows XP v5.1
[LWJGL] JRE: 1.8.0_91 x86
[LWJGL] JVM: Java HotSpot(TM) Client VM v25.91-b15 by Oracle Corporation
[LWJGL] Loading library (system): lwjgl32
[LWJGL] Using SharedLibraryLoader...
java.lang.RuntimeException: Unable to extract the LWJGL shared library
at org.lwjgl.system.SharedLibraryLoader.load(SharedLibraryLoader.java:41)
at org.lwjgl.system.SharedLibraryLoader.load(SharedLibraryLoader.java:58)
at org.lwjgl.system.Library.loadSystem(Library.java:76)
at org.lwjgl.system.Library.<clinit>(Library.java:43)
at org.lwjgl.system.MemoryAccess.<clinit>(MemoryAccess.java:17)
at org.lwjgl.system.Pointer.<clinit>(Pointer.java:22)
at org.lwjgl.glfw.GLFW.<clinit>(GLFW.java:562)
at ru.iremit.flappy.Main.init(Main.java:35)
at ru.iremit.flappy.Main.run(Main.java:25)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Failed to locate resource: lwjgl32.dll
at org.lwjgl.system.SharedLibraryLoader.extractFile(SharedLibraryLoader.java:80)
at org.lwjgl.system.SharedLibraryLoader.load(SharedLibraryLoader.java:39)
... 9 more
[LWJGL] Failed to load a library. Possible solutions:
a) Set -Djava.library.path or -Dorg.lwjgl.librarypath to the directory that contains the shared libraries.
b) Add the JAR(s) containing the shared libraries to the classpath.
Exception in thread "Game" java.lang.UnsatisfiedLinkError: D:\Documents and Settings\АдминиÃ'Ã'‚Ã'â,¬ÃÂ°Ã'‚оÃ'â,¬\workspace_luna_java\JGame\native\lwjgl32.dll: Не найдена Ã'Æ'казаннаÃ' пÃ'â,¬ÃÂ¾Ã'†ÐµÐ´Ã'Æ'Ã'â,¬ÃÂ°
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at org.lwjgl.system.Library.loadSystem(Library.java:110)
at org.lwjgl.system.Library.loadSystemRelative(Library.java:97)
at org.lwjgl.system.Library.loadSystem(Library.java:71)
at org.lwjgl.system.Library.<clinit>(Library.java:43)
at org.lwjgl.system.MemoryAccess.<clinit>(MemoryAccess.java:17)
at org.lwjgl.system.Pointer.<clinit>(Pointer.java:22)
at org.lwjgl.glfw.GLFW.<clinit>(GLFW.java:562)
at ru.iremit.flappy.Main.init(Main.java:35)
at ru.iremit.flappy.Main.run(Main.java:25)
at java.lang.Thread.run(Unknown Source)

P.S. Windows Xp - I use an old laptop.
P.P.S. "Не найдена Ã'Æ'казаннаÃ' пÃ'â,¬ÃÂ¾Ã'†ÐµÐ´Ã'Æ'Ã'â,¬ÃÂ°" - Approximate translation: "Not found the specified procedure"
Title: Re: Failed to locate resource: lwjgl32.dll
Post by: spasi on July 10, 2016, 22:11:20
Have you tried the solutions suggested in lines 23 & 24 of the output?
Title: Re: Failed to locate resource: lwjgl32.dll
Post by: makssof on July 10, 2016, 22:34:44
See screenshot
Title: Re: Failed to locate resource: lwjgl32.dll
Post by: spasi on July 10, 2016, 22:39:31
The properties should be set without the "D" prefix, i.e. "java.library.path" and "org.lwjgl.librarypath". Also, you don't have to set both.
Title: Re: Failed to locate resource: lwjgl32.dll
Post by: makssof on July 10, 2016, 22:54:55
Same error with
System.setProperty("java.library.path", System.getProperty("user.dir") + "\\native\\");
or "org.lwjgl.librarypath"
And i don't used his together, it's just for example that same error with any property.