特殊:Badtitle/NS100:Java3dUbuntu:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的1个中间版本) | |||
第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 | 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. | 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. | |||
Download | 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 | |||
This will create a | Modify your LD_LIBRARY_PATH environment variable to contain the full path to the lib/<ARCH> directory. For example, on 32-bit Linux: | ||
The file you need for manual installation is | 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 | |||
For example | 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/ | |||
---- | ---- | ||
[[category: | [[category:CategorySoftware]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月19日 (三) 23:01的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Java3dUbuntu }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/af | • {{#if: UbuntuHelp:Java3dUbuntu|Afrikaans| [[::Java3dUbuntu/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/ar | • {{#if: UbuntuHelp:Java3dUbuntu|العربية| [[::Java3dUbuntu/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/az | • {{#if: UbuntuHelp:Java3dUbuntu|azərbaycanca| [[::Java3dUbuntu/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/bcc | • {{#if: UbuntuHelp:Java3dUbuntu|جهلسری بلوچی| [[::Java3dUbuntu/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/bg | • {{#if: UbuntuHelp:Java3dUbuntu|български| [[::Java3dUbuntu/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/br | • {{#if: UbuntuHelp:Java3dUbuntu|brezhoneg| [[::Java3dUbuntu/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/ca | • {{#if: UbuntuHelp:Java3dUbuntu|català| [[::Java3dUbuntu/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/cs | • {{#if: UbuntuHelp:Java3dUbuntu|čeština| [[::Java3dUbuntu/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/de | • {{#if: UbuntuHelp:Java3dUbuntu|Deutsch| [[::Java3dUbuntu/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/el | • {{#if: UbuntuHelp:Java3dUbuntu|Ελληνικά| [[::Java3dUbuntu/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/es | • {{#if: UbuntuHelp:Java3dUbuntu|español| [[::Java3dUbuntu/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/fa | • {{#if: UbuntuHelp:Java3dUbuntu|فارسی| [[::Java3dUbuntu/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/fi | • {{#if: UbuntuHelp:Java3dUbuntu|suomi| [[::Java3dUbuntu/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/fr | • {{#if: UbuntuHelp:Java3dUbuntu|français| [[::Java3dUbuntu/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/gu | • {{#if: UbuntuHelp:Java3dUbuntu|ગુજરાતી| [[::Java3dUbuntu/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/he | • {{#if: UbuntuHelp:Java3dUbuntu|עברית| [[::Java3dUbuntu/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/hu | • {{#if: UbuntuHelp:Java3dUbuntu|magyar| [[::Java3dUbuntu/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/id | • {{#if: UbuntuHelp:Java3dUbuntu|Bahasa Indonesia| [[::Java3dUbuntu/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/it | • {{#if: UbuntuHelp:Java3dUbuntu|italiano| [[::Java3dUbuntu/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/ja | • {{#if: UbuntuHelp:Java3dUbuntu|日本語| [[::Java3dUbuntu/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/ko | • {{#if: UbuntuHelp:Java3dUbuntu|한국어| [[::Java3dUbuntu/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/ksh | • {{#if: UbuntuHelp:Java3dUbuntu|Ripoarisch| [[::Java3dUbuntu/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/mr | • {{#if: UbuntuHelp:Java3dUbuntu|मराठी| [[::Java3dUbuntu/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/ms | • {{#if: UbuntuHelp:Java3dUbuntu|Bahasa Melayu| [[::Java3dUbuntu/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/nl | • {{#if: UbuntuHelp:Java3dUbuntu|Nederlands| [[::Java3dUbuntu/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/no | • {{#if: UbuntuHelp:Java3dUbuntu|norsk| [[::Java3dUbuntu/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/oc | • {{#if: UbuntuHelp:Java3dUbuntu|occitan| [[::Java3dUbuntu/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/pl | • {{#if: UbuntuHelp:Java3dUbuntu|polski| [[::Java3dUbuntu/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/pt | • {{#if: UbuntuHelp:Java3dUbuntu|português| [[::Java3dUbuntu/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/ro | • {{#if: UbuntuHelp:Java3dUbuntu|română| [[::Java3dUbuntu/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/ru | • {{#if: UbuntuHelp:Java3dUbuntu|русский| [[::Java3dUbuntu/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/si | • {{#if: UbuntuHelp:Java3dUbuntu|සිංහල| [[::Java3dUbuntu/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/sq | • {{#if: UbuntuHelp:Java3dUbuntu|shqip| [[::Java3dUbuntu/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/sr | • {{#if: UbuntuHelp:Java3dUbuntu|српски / srpski| [[::Java3dUbuntu/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/sv | • {{#if: UbuntuHelp:Java3dUbuntu|svenska| [[::Java3dUbuntu/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/th | • {{#if: UbuntuHelp:Java3dUbuntu|ไทย| [[::Java3dUbuntu/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/tr | • {{#if: UbuntuHelp:Java3dUbuntu|Türkçe| [[::Java3dUbuntu/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/vi | • {{#if: UbuntuHelp:Java3dUbuntu|Tiếng Việt| [[::Java3dUbuntu/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/yue | • {{#if: UbuntuHelp:Java3dUbuntu|粵語| [[::Java3dUbuntu/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/zh | • {{#if: UbuntuHelp:Java3dUbuntu|中文| [[::Java3dUbuntu/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/zh-hans | • {{#if: UbuntuHelp:Java3dUbuntu|中文(简体)| [[::Java3dUbuntu/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Java3dUbuntu | UbuntuHelp:Java3dUbuntu | {{#if: | :}}Java3dUbuntu}}/zh-hant | • {{#if: UbuntuHelp:Java3dUbuntu|中文(繁體)| [[::Java3dUbuntu/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Java3dUbuntu|:Java3dUbuntu|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Java3dUbuntu/zh | | {{#ifexist: Java3dUbuntu/zh | | {{#ifeq: {{#titleparts:Java3dUbuntu|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Java3dUbuntu|1|-1|}} | zh | | }}
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/