Results 1 to 9 of 9

Thread: Java 3D Installation

  1. #1
    Join Date
    Jan 2009
    Beans
    59

    Exclamation Java 3D Installation

    How do I go about changing or setting the paths for the Java 3d installation? I am a noob at Ubuntu and Java programming, but another program that I need to work on needs Java 3D and as luck would have it, this is urgent.

    I downloaded the zip file and extracted the contents into

    home/username/j3d/lib
    the ext and i386 folders are in the same

    I now need to set the classpath to this path.
    Last edited by ashwat; March 25th, 2009 at 04:49 AM. Reason: More info added

  2. #2
    Join Date
    Jan 2009
    Beans
    59

    Re: Java 3D Installation

    bump

  3. #3
    Join Date
    Mar 2008
    Location
    Cardiff, UK
    Beans
    425
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Java 3D Installation

    This worked for me:

    Code:
    sudo aptitude install libjava3d-java
    sudo cp /usr/share/java/j3d*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/

  4. #4
    Join Date
    Mar 2010
    Beans
    1

    Re: Java 3D Installation

    Doesn't work for me. When trying to run an example, I get:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: no j3dcore-ogl in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1709)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at javax.media.j3d.NativePipeline$1.run(NativePipelin e.java:231)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.media.j3d.NativePipeline.loadLibrary(NativeP ipeline.java:200)
    at javax.media.j3d.NativePipeline.loadLibraries(Nativ ePipeline.java:157)
    at javax.media.j3d.MasterControl.loadLibraries(Master Control.java:987)
    at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUn iverse.java:299)
    at javax.media.j3d.Canvas3D.<clinit>(Canvas3D.java:38 81)
    at HelloJava3Dd.<init>(HelloJava3Dd.java:94)
    at HelloJava3Dd.main(HelloJava3Dd.java:115)


    This is after installing java3d as per the above post. Any ideas? I am new to all of this and seem unable to figure it out.

  5. #5
    Join Date
    Aug 2006
    Location
    USA
    Beans
    140
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Java 3D Installation

    BUMP!!

    I also receive the "no j3dcore-ogl" error.
    (\__/)
    ( -'.'-)
    (")_(") Mr. Bunny supports: Mike Gravel '08.

  6. #6
    Join Date
    May 2010
    Location
    Here
    Beans
    1,297
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Java 3D Installation

    Quote Originally Posted by Flimm View Post
    This worked for me:

    Code:
    sudo aptitude install libjava3d-java
    sudo cp /usr/share/java/j3d*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/
    I like
    Code:
    sudo apt-get install libjava3d-java
    sudo cp /usr/share/java/j3d*.jar  /usr/lib/jvm/java-6-sun/jre/lib/ext/
    better.

  7. #7
    Join Date
    Mar 2005
    Location
    UK
    Beans
    397
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Java 3D Installation

    For reference, the file libj3dcore-ogl.so is located in the package libjava3d-jni. It is still possible for java to complain about vecmath, a jar contained in the original libjava3d-java that you previously installed. So if you need any of this in order to get java3d, perform the following:
    Code:
    sudo aptitude install libjava3d-jni
    sudo cp /usr/lib/jni/libj3dcore-ogl.so /usr/lib/jvm/java-6-sun/jre/lib/i386/
    sudo cp /usr/share/java/vecmath-*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/
    If you are using a 64 bit system (as is my case) you should substitute "i386" with "amd64" in the last command. There are, however, a few more things you should know. First of all, this works with both openjdk and sun's java. At least crystall0graph does. Second, when java is updated, chances are you'll have to put all these libraries again.
    Now on... Thinkpad T400

    Latest news for radeon and/or radeonhd:
    ATI R600g Gains Mip-Map, Face Culling Support, 30th July 2010

  8. #8
    Join Date
    Oct 2010
    Beans
    11

    Re: Java 3D Installation

    Quote Originally Posted by lkjoel View Post
    I like
    Code:
    sudo apt-get install libjava3d-java
    sudo cp /usr/share/java/j3d*.jar  /usr/lib/jvm/java-6-sun/jre/lib/ext/
    better.
    Worked for me!

  9. #9
    Join Date
    Oct 2010
    Beans
    11

    Re: Java 3D Installation

    Quote Originally Posted by Miguel View Post
    For reference, the file libj3dcore-ogl.so is located in the package libjava3d-jni. It is still possible for java to complain about vecmath, a jar contained in the original libjava3d-java that you previously installed. So if you need any of this in order to get java3d, perform the following:
    Code:
    sudo aptitude install libjava3d-jni
    sudo cp /usr/lib/jni/libj3dcore-ogl.so /usr/lib/jvm/java-6-sun/jre/lib/i386/
    sudo cp /usr/share/java/vecmath-*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/
    If you are using a 64 bit system (as is my case) you should substitute "i386" with "amd64" in the last command. There are, however, a few more things you should know. First of all, this works with both openjdk and sun's java. At least crystall0graph does. Second, when java is updated, chances are you'll have to put all these libraries again.
    Also needed to get java3d working in Ubuntu 10.04.1 w/ Eclipse

Tags for this Thread

Bookmarks

Posting Permissions

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