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)
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)