error after upgrade to oracle 1.8.0_20 from 1.8.0_11

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

error after upgrade to oracle 1.8.0_20 from 1.8.0_11

ewald
I have java program utilizing the jogl libraries that I can't get to work on a newly configurated Linux Mint 17 system, while it runs perfectly on another Linux Mint 17 system. The only difference I can find between the two systems is the slightly more recent oracle JDK.
Error message I am getting:
java.lang.UnsatisfiedLinkError: Can't load library: /home/ewald/Schule/SJ-2014-15/Q1-Info/Gloop/2_Erdeszene/libgluegen-rt.so

libgluegen-rt.so is located at the path indicated above

Can anyone help me here? I should say that I am not an expert in java programming, I am just trying to get a system set up in a CS teaching environment.
Reply | Threaded
Open this post in threaded view
|

Re: error after upgrade to oracle 1.8.0_20 from 1.8.0_11

Sven Gothel
Administrator
On 08/22/2014 07:30 AM, ewald [via jogamp] wrote:

> I have java program utilizing the jogl libraries that I can't get to work on a
> newly configurated Linux Mint 17 system, while it runs perfectly on another
> Linux Mint 17 system. The only difference I can find between the two systems
> is the slightly more recent oracle JDK.
> Error message I am getting:
> java.lang.UnsatisfiedLinkError: Can't load library:
> /home/ewald/Schule/SJ-2014-15/Q1-Info/Gloop/2_Erdeszene/libgluegen-rt.so
>
> libgluegen-rt.so is located at the path indicated above
>
> Can anyone help me here? I should say that I am not an expert in java
> programming, I am just trying to get a system set up in a CS teaching
> environment.
I see that you utilize the LD_LIBRARY_PATH instead of using
our native jar files.

Maybe the native library is of a different version
than the loading gluegen-rt.jar ?

I recommend using our native jar files,
i.e. simply remove plain native libraries, not using LD_LIBRARY_PATH.
Simply drop all java-jar files and native-jar files into one location
(folder), done.

If you insist using native libs, or if the issue still exists,
pls test via:

> ldd -r -v
/home/ewald/Schule/SJ-2014-15/Q1-Info/Gloop/2_Erdeszene/libgluegen-rt.so


~Sven



signature.asc (828 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: error after upgrade to oracle 1.8.0_20 from 1.8.0_11

gouessej
Administrator
In reply to this post by ewald
Please test with OpenJDK too. As OpenJDK is the Reference Implementation of Java and the default implementation under GNU Linux, it would be easier for other developers to reproduce your problem.

I agree with Sven's suggestion, keep it simple, put all JARs containing both the Java libraries and the native libraries into the same JARs and let GlueGen do its job (detect the appropriate JARs, extract the native libraries from them, load them) without modifying the Java library path or LD_LIBRARY_PATH.
Julien Gouesse | Personal blog | Website