Error "Failed to load a library" in spite of java.library.path being set (Linux)

Started by markcitizen, July 15, 2016, 05:18:18

Previous topic - Next topic

markcitizen

Hello,
I've been trying to get LWJGL 3.0 working on Linux and I can't get it to work.
I tried setting both java.library.path and org.lwjgl.librarypath to the directory containing Linux native libs (*.so).
I also tried exporting LD_LIBRARY_PATH, no luck.

My code is written in Scala but I don't think this should matter, I can get it to work on OSX without any issues.
I'm using latest stable build (LWJGL version is 3.0.0.SNAPSHOT).
This is my startup script:

#!/bin/sh
java -Dorg.lwjgl.librarypath=lib/native/linux -cp target/scala-2.10/datapool-opengl-assembly-0.0.1.jar io.datapool.opengl.TestView

And these are the contents of the lib/native/linux folder:
109872 Jul 13 21:32 libglfw.so
228080 Jul 13 21:32 libjemalloc.so
805024 Jul 13 21:32 liblwjgl.so
561240 Jul 13 21:32 libopenal.so

My jar file contains lwjgl.jar (assembly merges all classes into one jar).
I'm using Linux Debian 64bit, kernel version 3.2.0-4-amd64, with Nvidia drivers (direct rendering enabled).

I would appreciate any help in this matter.
Regards,

M

spasi

Please note that the latest LWJGL releases are 3.0.0 and 3.0.1-SNAPSHOT. If you try one of these and it still doesn't work, please run your application with -Dorg.lwjgl.util.Debug=true and post the output here.