LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2008, 02:44 PM   #1
olekaven
LQ Newbie
 
Registered: Aug 2008
Distribution: Fedora 9
Posts: 3

Rep: Reputation: 0
Issues with java3d SDK/API installattion/execution


Here are my (unsuccesful) steps in attempting to install java3d API:
Frontmatter:

O.1 'uname -a'
Linux davenport... 2.6.25.14-108.fc9.i686 #1 SMP Mon Aug 4 14:08:11 EDT 2008 i686 i686 i386 GNU/Linux


0.2 set java_home path to: 'export JAVA_HOME=/usr/lib/jvm/jre-1.6.0-openjdk'
' echo $JAVA_HOME'
/usr/lib/jvm/jre-1.6.0-openjdk

1. Saved java3d-1_5_1-linux-i586.bin and moved it into what I thought was the appropriate location as the 'java' executable was in here: /usr/lib/jvm/jre-1.6.0-openjdk/bin

'type -a javac' yields 'javac is /usr/bin/javac'
which is a symbolic link to /etc/alternatives/jre/lib

2. Installed Java3D: ./java3d*
Received the following output (after license..):
'Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
creating: lib/
creating: lib/i386/
inflating: lib/i386/libj3dcore-ogl.so
inflating: lib/i386/libj3dcore-ogl-cg.so
creating: lib/ext/
inflating: lib/ext/vecmath.jar
inflating: lib/ext/j3dcore.jar
inflating: lib/ext/j3dutils.jar
Done.'


3. Then copied the 3 .jar files from '/usr/lib/jvm/jre-1.6.0-openjdk/bin/lib/ext'
to '/usr/lib/jvm/jre-1.6.0-openjdk/bin/lib/'

by instruction of "...linux.org/docs/ldp/howto/Nvidia-OpenGL-Configuration/instjava.html"

4. Error message: (CrestViewer.jar is the java application I'm trying to run, source: "...mpi-inf.mpg.de/~shin/Research/Crest/Crest.html")
java -classpath . -jar CrestViewer.jar
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/j3d/Geometry
Caused by: java.lang.ClassNotFoundException: javax.media.j3d.Geometry
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)


1b. Starting again: Moving java3d-1_5_1-linux-i586.bin and moved it into what I think is the appropriate location as the 'java' executable was in here: /etc/alternatives/java_sdk/bin

2b. Installed Java3D: ./java3d*
Received the following output (after license..):
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
creating: lib/
creating: lib/i386/
inflating: lib/i386/libj3dcore-ogl.so
inflating: lib/i386/libj3dcore-ogl-cg.so
creating: lib/ext/
inflating: lib/ext/vecmath.jar
inflating: lib/ext/j3dcore.jar
inflating: lib/ext/j3dutils.jar


3b. Then copied the 3 .jar files from '/etc/alternatives/java_sdk/bin/lib/ext'
to '/etc/alternatives/java_sdk/bin/'

4b. Still nothing works (same error message)


Any suggestion?
Thanks in advance...
 
Old 09-06-2008, 10:34 AM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
It might help if you just read the installation instructions on the site you got the package from. If I remember well, the 3d binary needs to be extracted to the jre/bin/lib/ext directory.
 
Old 09-08-2008, 05:50 PM   #3
olekaven
LQ Newbie
 
Registered: Aug 2008
Distribution: Fedora 9
Posts: 3

Original Poster
Rep: Reputation: 0
Installation java3d update

Thanks for the reply! Following the instructions provided with the distribution state:
"
The 1.5.2 release of the Java 3D API for Linux or Solaris runs on JDK version 1.5.0 and higher. To manually install this release, do the following:

1. Download and unzip j3d-1_5_2-XXX.zip into a temporary download directory, for example, /tmp. This will create a j3d-1_5_2-XXX subdirectory in /tmp where the downloaded files can be found. The file you need for manual installation is j3d-jre.zip.

2. Create a folder for the j3d jar files and native libraries, for example, /myhome/j3d, and unzip j3d-jre.zip into this directory as follows:

cd /myhome/j3d
unzip /tmp/j3d-1_5_2-*/j3d-jre.zip

3. Modify your CLASSPATH environment variable to include the full paths to j3dcore.jar, j3dutils.jar, and vecmath.jar. For example:

export CLASSPATH=.:/myhome/j3d/lib/ext/j3dcore.jar:/myhome/j3d/lib/ext/j3dutils.jar:/myhome/j3d/lib/ext/vecmath.jar

4. Modify your LD_LIBRARY_PATH environment variable to contain the full path to the lib/<ARCH> directory. For example, on 32-bit Linux:

export LD_LIBRARY_PATH=/myhome/j3d/lib/i386

At this point your Java installation should be able to see the j3d class files. Users of IDEs such as NetBeans and Eclipse should consult the IDE's documentation to see how to add jar files and native libraries to their current project.
"

This is essentially the same as I had done before, except with different location for the .jar files and libraries. Regardless, following the same instructions yield the identical error:
 
Old 09-08-2008, 06:13 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Have you tried placing the files where I suggested?
 
Old 09-09-2008, 10:46 AM   #5
olekaven
LQ Newbie
 
Registered: Aug 2008
Distribution: Fedora 9
Posts: 3

Original Poster
Rep: Reputation: 0
Issues with java3d SDK/API instalattion/execution

Yes, the core files were in the directory even before the first post.
 
Old 09-09-2008, 12:29 PM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
But I see you are referring to /etc, that is not where the jdk gets installed by default. The jdk should be under /usr/java (I seem to remember -- some distros will put it in /us/lib instead).

And what exactly are you using a classpath for? It is not needed if the binary is in a standard location.

Last edited by jay73; 09-09-2008 at 12:31 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating forms from basic shapes with moving parts in Java3D gvp87 Programming 0 10-30-2007 11:37 PM
X server crashes the second time one of Java3D demos is run alexcpp Linux - Software 0 12-01-2006 01:16 PM
Java3D and FlightGear are not fast in my Linux sanmartin Linux - Software 2 08-29-2005 07:17 AM
installing woody packages in unstable debian? (java3D) bronko Debian 3 01-04-2004 08:15 AM
Java3D installation issues jaycee999 Linux - Software 0 10-26-2002 10:55 PM


All times are GMT -5. The time now is 02:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration