You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Netbeans to build an LWJGL project. The program runs fine on Mac, but when I try to run it on Windows (java -Dorg.lwjgl.util.Debug=true -Dorg.lwjgl.util.DebugLoader=true -jar RevuePlayer2.jar), I get this error:
[LWJGL] Version: 3.2.3 build 13
[LWJGL] OS: Windows 10 v10.0
[LWJGL] JRE: 1.8.0_261 x86
[LWJGL] JVM: Java HotSpot(TM) Client VM v25.261-b12 by Oracle Corporation
[LWJGL] Loading JNI library: lwjgl
[LWJGL] Module: org.lwjgl
[LWJGL] windows/x86/org/lwjgl/lwjgl.dll not found in java.library.path=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Python27;C:\Program Files\TortoiseSVN\bin;c:\Shortcuts;c:\Python27\Scripts;;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\PuTTY\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\tim\AppData\Local\Microsoft\WindowsApps;;.
[LWJGL] lwjgl.dll not found in java.library.path
[LWJGL] Failed to load a library. Possible solutions:
a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
b) Add the JAR that contains the shared library to the classpath.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll
at org.lwjgl.system.Library.loadSystem(Library.java:162)
at org.lwjgl.system.Library.loadSystem(Library.java:62)
at org.lwjgl.system.Library.<clinit>(Library.java:50)
at org.lwjgl.glfw.GLFW.<clinit>(GLFW.java:674)
at revueplayer2.GraphicsWindow.setup(GraphicsWindow.java:126)
at revueplayer2.PlayerWindow.setup(PlayerWindow.java:33)
at revueplayer2.RevuePlayer2.main(RevuePlayer2.java:28)
As far as I can see, the right natives jars are included:
Turns out among the various things that my sysadmin did to mess up my PC was to remove the paths to newer Java releases. As a result, I was running a 32-bit java 8. My recommendation here would be to have the error message be explicit about the fact that there is a mismatch between the architecture of the JVM and that of the DLLs in the jars.
Starting from the next snapshot, LWJGL will try to detect platform/architecture mismatches and will print something like this when it can't resolve a native library:
[LWJGL] Platform/architecture mismatch detected for module: org.lwjgl.opengl
JVM platform:
Windows x86 1.8.0_222
OpenJDK Client VM v25.222-b10 by Azul Systems, Inc.
Platforms available on classpath:
windows/x64
linux/x64
linux/arm32
linux/arm64
macos/x64
Environment
3.2.3
13
java.version
macOS|Windows
Description
I am using Netbeans to build an LWJGL project. The program runs fine on Mac, but when I try to run it on Windows (
java -Dorg.lwjgl.util.Debug=true -Dorg.lwjgl.util.DebugLoader=true -jar RevuePlayer2.jar
), I get this error:As far as I can see, the right natives jars are included:
Being a netbeans project, the manifest is what specifies the classpath, and here are the contents of
META-INF/MANIFEST.MF
:The text was updated successfully, but these errors were encountered: