gluegen-rt-natives-windows-amd64.jar not found on i586

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

gluegen-rt-natives-windows-amd64.jar not found on i586

mortimmer

Hi guys,

I'm trying to run a small JOGL application like this:

java -classpath ".;..\jars\gluegen-rt.jar;..\jars\gluegen-rt-natives-windows-i586.jar;..\jars\jogl.all.jar;..\jars\jogl-all-natives-windows-i586.jar" HelloJOGL

As you can see I added the lib jars to the classpath. What I get is a FileNotFoundException on gluegen-rt-natives-windows-amd64.jar.

Is this a property somewhere that needs to be set to the i586 jar?
Reply | Threaded
Open this post in threaded view
|

Re: gluegen-rt-natives-windows-amd64.jar not found on i586

Sven Gothel
Administrator
On Sunday, January 15, 2012 10:17:28 PM mortimmer [via jogamp] wrote:

>
> Hi guys,
>
> I'm trying to run a small JOGL application like this:
>
> java -classpath
> ".;..\jars\gluegen-rt.jar;..\jars\gluegen-rt-natives-windows-i586.jar;..\jars\jogl.all.jar;..\jars\jogl-all-natives-windows-i586.jar"
> HelloJOGL
>
> As you can see I added the lib jars to the classpath. What I get is a
> FileNotFoundException on gluegen-rt-natives-windows-amd64.jar.
>

1st of all, you don't need to add the native JARs to your CP,
actually you should not.

http://forum.jogamp.org/setting-up-JOGL-in-Eclipse-on-Mac-OSX-Lion-Frustration-td3435692.html#a3436274

> Is this a property somewhere that needs to be set to the i586 jar?
Derived from the running JVM's OS and ARCH sys props, so they shouldn't
be of a 64bit machine one a 32bit machine.

http://jogamp.org/git/?p=gluegen.git;a=blob;f=src/java/com/jogamp/common/os/Platform.java;hb=HEAD#l155
http://jogamp.org/git/?p=gluegen.git;a=blob;f=src/java/com/jogamp/common/os/Platform.java;hb=HEAD#l439

Hence, "os.arch" must have been "x86_64" on your system.

~Sven
Reply | Threaded
Open this post in threaded view
|

Re: gluegen-rt-natives-windows-amd64.jar not found on i586

mortimmer

Hi Sven,

Thanks for the reply, I had downloaded the wrong file (i586) for my architecture (x86_64), got confused because I have an intel (didn't know i586 implies 32 bit) and the file is named amd .

All I had to do was add gluegen-rt.jar and jogl.all.jar to the classpath for both javac/java, and make gluegen-rt-natives-windows-amd64.jar and jogl-all-natives-windows-amd64.jar (mind the '-' after jogl, not a '.') available in a directory reachable by classpath and it works right away.


Thanks for pointing out the platform code too, it gave insight :-)