PDA

View Full Version : Running under 64-bit Linux


orthonormal
05-12-2007, 07:19 AM
Hi all,

I couldn't get the WWJ demo to work on my Ubuntu Feisty 64-bit machine "out-of-the-box". I thought I'd share the steps I took to get it working:

1. Download the amd64 version of JOGL. I used a nightly build from https://jogl.dev.java.net/#NIGHTLY
2. Unzip the downloaded file and copy the content of the lib directory to your WWJ directory (eg cp jjogl-1.1.1-pre-20070511-linux-amd64/lib/* /path_to_WWJ/)
3. Edit run-demo.bash and replace the last line in the file with:
java -Xmx512m -Dsun.java2d.noddraw=true -Djava.library.path=. -classpath ./src:./classes:./worldwind.jar:./jogl.jar:./gluegen-rt.jar $1

(note: the only change is the addition of "-Djava.library.path=.")

Now works very smoothly on my setup (Core2Duo 64-bit with an old X300 ATI card and the latest ATI proprietry drivers).

Note: without installing the AMD64 version of JOGL you will likely see errors like:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path
or: Exception in thread "main" java.lang.UnsatisfiedLinkError: ~/wwj/libgluegen-rt.so: ~/wwj/libgluegen-rt.so: wrong ELF class: ELFCLASS32

PS: for those releasing WWJ applications only via Java Web Start please keep in mind that Java 5.0+ Web Start is not available on Linux 64-bit (to my knowledge at least: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4802695)

Unregistered
05-12-2007, 05:58 PM
I'm still forgetting sometimes, that 64 bit can cause (library-) problems.
Thanks a lot for your short and excellent HOWTO.

wherisat
08-15-2011, 11:44 PM
I just spent like 3 hours looking for those 64-bit jars, they can be found here now: http://download.java.net/media/jogl/...start-current/

Thank goodness for this post: http://forum.worldwindcentral.com/showthread.php?t=28623#post89167

So many old broken links for this one...

Specifically I needed to download gluegen-rt-natives-windows-amd64.jar and jogl-natives-windows-amd64.jar. For my 64-bit win7 box with 64-bit JDK 1.7 I place those 4 dlls in a folder and make that folder my working dir (or I think setting "-Djava.library.path" also works) for the JVM.

nhatzop
08-16-2011, 10:15 PM
Question here..
is the plugin.jar supported on the 64 bit version?

Last time I was checking 64bit java they did not support the plugin for
the firefox so what's the point to have 64bit java then? the libnpjp2.so file

because I always have problem with the 64 bit java and I am always
using the 32bit java under my 64bit Centos 5 (linux)

especially if you want to run a geoserver or other java project you avoid 64bit java

--Nikos Hatzopoulos

I just spent like 3 hours looking for those 64-bit jars, they can be found here now: http://download.java.net/media/jogl/...start-current/

Thank goodness for this post: http://forum.worldwindcentral.com/showthread.php?t=28623#post89167

So many old broken links for this one...

Specifically I needed to download gluegen-rt-natives-windows-amd64.jar and jogl-natives-windows-amd64.jar. For my 64-bit win7 box with 64-bit JDK 1.7 I place those 4 dlls in a folder and make that folder my working dir (or I think setting "-Djava.library.path" also works) for the JVM.

wherisat
08-17-2011, 03:27 AM
I don't do anything through the web...so 64bit worked for me.

nlneilson
08-17-2011, 04:24 AM
because I always have problem with the 64 bit java and I am always using the 32bit java under my 64bit Centos 5 (linux)

Same here. Problems with apps other than WWJ on 64bit on Win and Ubuntu switched me back to 32bit. Other than being able to use more memory on 64bit what is the purpose?

Almost forgot, the necessity to optimize code is less on 64bit.