0

I created an aplication, and in my computer, the jar is running without any problems. I tried to run it in another pc, it doesn't do ANYTHING, like, at all. And then, i tried the same jar in another pc (a 3rd pc if you want so see it that way), there, the jar runs without a problem. So i came back to the second one, and tried to run it from the command line, and it's giving me this error:

"Exception in thead "main" java.lang.UnsatisfiedLinkError: can't load library: C:\Users\hectlr\lib\natives\lwjgl.dll"

What really caught my attention, is that in the other computers, works, but it's not using that path, i mean, the firs one, mi pc it's c:\users\hectorhammett... and the other pc it's c:\users\pedro... in the pedro one, i don't have anything about java, it's a recently formated pc, i just installed java and it's working... any ideas?

2 Answers2

0

This problem generally occurs when your jar trying to use native library of operating system.In windows it is "LWJGL.DLL". java.lang.UnsatisfiedLinkError occurs if the JVM cannot find this file. try to find the existence of this file in machine 2 where your jar file is not working and try to add them to path if they does not exists.

0
Exception in thead "main" java.lang.UnsatisfiedLinkError:
can't load library: C:\Users\hectlr\lib\natives\lwjgl.dll

means that the target computer doesn't find the dll at the specified place, or, it means that the dll is not compatible.

Check if you can find the dll in C:\Users\hectlr\lib\natives\, then check if the dll is the good one (x86 vs. x64).

johan d
  • 2,798
  • 18
  • 26