个人工具

“UbuntuHelp:Java3dUbuntu”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/Java3dUbuntu}} {{Languages|UbuntuHelp:Java3dUbuntu}} You can use Java3d (1.4.0-beta3 Build 9 tested) with the blackdown j2re1.4 Ubuntu Package Ju...)
 
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/Java3dUbuntu}}
 
{{From|https://help.ubuntu.com/community/Java3dUbuntu}}
 
{{Languages|UbuntuHelp:Java3dUbuntu}}
 
{{Languages|UbuntuHelp:Java3dUbuntu}}
You can use Java3d (1.4.0-beta3 Build 9 tested) with the blackdown j2re1.4 Ubuntu Package
+
You can use [http://download.java.net/media/java3d/builds/release/1.5.2/j3d-1_5_2-linux-i586.zip  java3d] with the j2re1.6 Ubuntu Package
 
+
Just download Java3d and install it into /usr/lib/j2se/1.6/jre (more detail above)
Just download Java3d and install it into /usr/lib/j2se/1.4/jre (more detail above)
+
Ubuntu 9.10
 
+
The 1.5.2 release of the Java 3D API for Ubuntu runs on JDK version 1.5.0 and higher. To manually install this release, do the following:
If you want to use Java3d within Eclipse (Ubuntu Package available), just make sure that the blackdown jre is selected in the eclipse menu "Window/Preferences/Java/Installed JREs"
+
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.
 
+
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:
=== Get the Java3d source ===
+
cd /myhome/j3d
 
+
unzip /tmp/j3d-1_5_2-*/j3d-jre.zip
https://java3d.dev.java.net/
+
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
Download java3d-1_4_0_01-linux-i586.zip to a temporary directory, for example, "/tmp"
+
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
=== Unzip downloaded file ===
+
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.
 
+
The Ubuntu /lib also need to be filled with
Unzip java3d-1_4_0_01-linux-i586.zip into "/tmp" as follows:
+
libj3dcore-ogl-cg.so
 
+
libj3dcore-ogl.so
<pre><nowiki>cd /tmp
+
These files are located at <extracted path>/lib/i386/*.
unzip java3d-1_4_0_01-linux-i586.zip</nowiki></pre>
+
use following code to copy:
 
+
$> sudo cp <extracted path>/j3d-1_5_2-linux-i586/lib/i386/* /lib/
This will create a "java3d-1_4_0_01-linux-i586" subdirectory in /tmp where the downloaded files can be found.  
+
The file you need for manual installation is "j3d-140-linux-x86.zip".
+
 
+
=== Install Java 3D ===
+
 
+
Unzip Java 3D 1.4.0_01 into the "jre" directory of your JDK.  
+
For example, if your JDK is in "/usr/lib/j2se/1.4/jre", you would do the following:
+
 
+
<pre><nowiki>cd /usr/lib/j2se/1.4/jre
+
sudo unzip /tmp/java3d-1_4_0_01-linux-i586/j3d-140-linux-x86.zip</nowiki></pre>
+
 
+
Verify that the j3d*.jar and vecmath.jar files end up in "/usr/lib/j2se/1.4/jre/lib/ext"
+
 
+
Have fun!
+
 
+
 
----
 
----
[[category:CategoryCleanup]]  
+
[[category:CategorySoftware]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 23:01的最新版本

You can use java3d with the j2re1.6 Ubuntu Package Just download Java3d and install it into /usr/lib/j2se/1.6/jre (more detail above) Ubuntu 9.10 The 1.5.2 release of the Java 3D API for Ubuntu runs on JDK version 1.5.0 and higher. To manually install this release, do the following: 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. 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 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 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. The Ubuntu /lib also need to be filled with libj3dcore-ogl-cg.so libj3dcore-ogl.so These files are located at <extracted path>/lib/i386/*. use following code to copy: $> sudo cp <extracted path>/j3d-1_5_2-linux-i586/lib/i386/* /lib/