Results 1 to 6 of 6

Thread: Running under 64-bit Linux

  1. #1

    Default Running under 64-bit Linux

    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_id=4802695)

  2. #2
    Unregistered
    Guest

    Default Thanks a lot

    I'm still forgetting sometimes, that 64 bit can cause (library-) problems.
    Thanks a lot for your short and excellent HOWTO.

  3. #3
    Junior Member
    Join Date
    Jul 2006
    Posts
    22

    Default 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.

  4. #4
    Junior Member
    Join Date
    May 2011
    Posts
    28

    Default

    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

    Quote Originally Posted by wherisat View Post
    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.

  5. #5
    Junior Member
    Join Date
    Jul 2006
    Posts
    22

    Default

    I don't do anything through the web...so 64bit worked for me.

  6. #6
    Super Moderator
    Join Date
    Nov 2006
    Location
    Mojave & Oxnard California
    Posts
    2,881

    Default

    Quote Originally Posted by nhatzop View Post
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. WorldWind for FreeBDS or Linux?
    By Felix Aponte in forum Suggestion Box
    Replies: 4
    Last Post: 07-05-2007, 02:31 PM
  2. Linux version would be great
    By Unregistered in forum Suggestion Box
    Replies: 8
    Last Post: 05-03-2007, 01:48 AM
  3. Install on linux ppc?
    By ubuntubrian in forum Install Support
    Replies: 7
    Last Post: 02-06-2007, 03:38 AM
  4. OS X and Linux
    By Bertrand - France in forum Ports
    Replies: 1
    Last Post: 03-29-2005, 12:05 PM
  5. program not running after installation
    By Colin in forum Technical Support
    Replies: 4
    Last Post: 10-22-2004, 11:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •