gluegen-rt.dll Error

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

gluegen-rt.dll Error

Sanda
Hy!
I am trying to compile a Java program but I always get this error:
 Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\spopoiu\Desktop\Java\Workspace\Grafica\gluegen-rt.dll

I added this 3 libraries gluegen-rt.jar, jogl-all.jar and jogl-all-native-windows-amd64.jar in Referenced Libraries. I also tried this to another computer and it worked, but on mine doesn't.

What should I do?

Reply | Threaded
Open this post in threaded view
|

Re: gluegen-rt.dll Error

Xerxes Rånby


Den 2015-04-02 10:35, Sanda [via jogamp] skrev:

> Hy!
> I am trying to compile a Java program but I always get this error:
>  Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load
> library: C:\Users\spopoiu\Desktop\Java\Workspace\Grafica\gluegen-rt.dll
>
> I added this 3 libraries gluegen-rt.jar, jogl-all.jar and
> jogl-all-native-windows-amd64.jar in Referenced Libraries. I also
> tried this to another computer and it worked, but on mine doesn't.
>
> What should I do?

you also need to add  gluegen-rt-natives-windows-amd64.jar

Cheers
Xerxes

Reply | Threaded
Open this post in threaded view
|

Re: gluegen-rt.dll Error

gouessej
Administrator
In reply to this post by Sanda
Hi

Xerxes is right. Moreover, there is a good practice consisting in putting the JARs containing the native libraries of several architectures into the same directory than the JARs containing the Java libraries so that JOGL picks the right one whatever the bitness of your JVM. For example, imagine that you use a 32-bit JVM on a 64-bit OS, you need the 32-bit native libraries. If you switch to a 64-bit JVM, you will need the 64-bit native libraries.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: gluegen-rt.dll Error

Sanda
In reply to this post by Sanda
Now I get this

Exception in thread "main" java.lang.NoClassDefFoundError: jogamp/common/os/MachineDescriptionRuntime
Reply | Threaded
Open this post in threaded view
|

Re: gluegen-rt.dll Error

gouessej
Administrator
Actually, you are mixing several incompatible versions of GlueGen (>= 2.3.1) and JOGL (<2.3.1) as jogamp.common.os.MachineDescriptionRuntime was moved into jogamp.common.os.MachineDataInfoRuntime:
https://github.com/sgothel/gluegen/commit/7db9df61142694965b50f2e0553d4c9e5668439b

Please clean up your mess, delete all JARs of JOGL and GlueGen and get the latest JARs here.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: gluegen-rt.dll Error

Sanda
Now I can't even build the program because I have errors at the lines with import...
Reply | Threaded
Open this post in threaded view
|

Re: gluegen-rt.dll Error

Wade Walker
Administrator
Hi Sanda,

We have detailed instructions on the wiki at http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE. Error at import lines sounds like you just don't have the JARs included properly in your build.
Reply | Threaded
Open this post in threaded view
|

Re: gluegen-rt.dll Error

gouessej
Administrator
In reply to this post by Sanda
There have been some changes in the public APIs:
https://jogamp.org/bugzilla/show_bug.cgi?id=682

Please tell us more precisely what is wrong, you're not accurate enough.
Julien Gouesse | Personal blog | Website