Running under 64-bit Linux
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_id=4802695)
Thanks a lot
I'm still forgetting sometimes, that 64 bit can cause (library-) problems.
Thanks a lot for your short and excellent HOWTO.
Jar location update & tip
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/sh...8623#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.
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
Originally Posted by wherisat
I don't do anything through the web...so 64bit worked for me.
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?
Originally Posted by nhatzop
Almost forgot, the necessity to optimize code is less on 64bit.