The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Поиск:  Каталог документации

8. Install Java 3D (optional)

If you already have a Java JDK/SDK or JRE, that is, a Java/Software Development Kit or Java Runtime Environment, installed, then you may have to take care to uninstall them or leave them alone!

It is recommended that you have the lastest version of Netscape 4.7x, which at this time of writing, is 4.76, if you plan to install the Java PlugIn for netscape. It works, but you may (or may not) experience Segmentation Faults when leaving a page that contained a Java 3D applet.

Assuming your are logged in as root and have downloaded the Java packages from blackdown.org into the root home directory, /root, do:

Install the Java 2 SDK (1.2.2) and Java 3D (1.2) extension:

                cd /usr/local
                tar -xvyf ~/j2sdk-1.2.2-FCS-linux-i386-glibc-2.1.3.tar.bz2
                ln -s jdk1.2.2 jdk
                cd jdk
                tar -xvyf ~/java3d1_2-FCS-linux-i386-sdk.tar.bz2
                cd jre/lib/ext
                cp j3d* ..
                cp vecmath.jar ..
                cd /usr/local
                chown -R root:root jdk1.2.2
        

Edit /etc/profile, add:

                JAVA_HOME=/usr/local/jdk
                PATH=$PATH:$JAVA_HOME/bin
                export JAVA_HOME PATH
        
This completes the installation of the Java 2 SDK, which includes the JRE, and the Java 3D 1.2 extension.

Install the Java PlugIn for netscape:
                -- source profile to set JAVA_HOME and PATH
                source /etc/profile
                cd
                chmod u+x JavaPlugIn-1.2.2-FCS-linux-i386-glibc-2.1.3.run
                ./JavaPlugIn-1.2.2-FCS-linux-i386-glibc-2.1.3.run
                -- each user has to run this file to install the plugin - it is per user, not global
                netscape &
        
When netscape loads, go to Edit/Preferences/Advanced and Enable Java and Enable Java Plugin, then exit netscape.

The next step is to configure the Java PlugIn. It comes with a configuration applet.

                netscape ~/.netscape/java/ControlPanel.html &
                -- the Control Panel for JavaPlugIn should load
        
Again, netscape will load. Click the "Advanced" tab, select "Other ..." and type for Path:

                /usr/local/jdk1.2.2/jre
        
Then click "Apply" and exit Netscape. By changing this, it tells the Plugin to use the system Java Runtime Environment instead of the JRE it installed under ~/.netscape. The system JRE is where the Java 3D API extension is installed.

Test Java 3D demos:

                cd $JAVA_HOME/demo/java3d/GearTest
                java GearBox &
                -- runs as normal java application
                netscape GearBox_plugin.html &
                -- runs in netscape as an applet
        

If all works well, you should have a complete Java Developement and Runtime Environment for both normal apps and high-performance 3D apps. See http://java.sun.com/ for further information about Java and the Java 3D extension.




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру