JOGL and Eclipse

Hello,

I can build using Eclipse but cannot run.
The libjogl.so files are in the same directory as the project (workspace/HelloWorld).

Why can’t the JVM engine find the libfiles?
Anyone has a fix for this? I’ve tried adding the Path variable into Environment but with no success.

/Jonas

What error do you get?

Eclipse should have set your project directory as working directory, which should be enough to run a JOGL application, if the native libraries are located there. Check your run configuration, if there is a different working directory specified.

Thanks for the help.

I found the issue.

The LD_LIBRARY_PATH variable had to be set to include the current directory.

adding a :. to the end made the trick.

Run… -> Environment -> Select Variable -> Edit -> “current path” : .

/Jonas

Ah ok. I thought that you do not need to set this, if the natives are in the working directory. So it seems this is only true for Windows…