| The Java 3D API Specification |
|
A P P E N D I X G |
|
CD-ROM Installation |
THIS appendix describes how to install the software on the CD-ROM that came with this book. For descriptions of the program examples on the CD-ROM, see Appendix H, "The Example Programs."
G.1
The Java 3D CD-ROM contains the following:What's on the CD-ROM
- The Java 2 SDK, Standard Edition, v 1.2.2 for Solaris/SPARC systems (Solaris 2.6 or subsequent compatible version)
- The Java 2 SDK, Standard Edition, v 1.2.2 for Windows (Windows 95, Windows 98, Windows NT, and Windows 2000)
- The Java 3D API Version 1.2, including the
com.sun.j3d.*packages, for Solaris/SPARC systems
- The Java 3D API Version 1.2, including the
com.sun.j3d.*packages, for Windows systems (OpenGL version)
- Sun OpenGL 1.2.1 for Solaris
- Example programs
The Java 3D CD-ROM does not contain OpenGL for Windows, which is required to run Java 3D applications. See Section G.2.1, "Requirements for Windows Systems."
- The javadocs and The Java 3D 1.2 API Specification (this book) in a browsable format (both html and Adobe Acrobat)
The CD-ROM also contains the following directories:
G.2
Installing the Software on Windows 95/98/NT Systems G.2.1
The system on which the contents of the CD-ROM are installed should haveRequirements for Windows Systems
- At least 65 megabytes of free disk space for the Java 2 SDK
This version of Java 3D for Windows 95/98/NT requires OpenGL from Microsoft or a hardware accelerator that supports OpenGL 1.1 (or later). If you do not have OpenGL installed on your system, contact your hardware vendor or download OpenGL from:
- At least 10 megabytes of free disk space for the Java 3D API
http://www.opengl.org/G.2.2
The installation program creates a directoryInstalling the Java 2 SDK on Windows Systems C:\jdk1.2.2where it puts both the Java 2 SDK and the Java 3D SDK. It also creates a directoryC:\Program Files\Javasoft\1.2where it puts the Java 2 JRE and Java 3D runtime.To install the Java 2 SDK and Java 3D on a Windows system, follow these steps:
1. If your system does not already have OpenGL installed, install it before installing the CD-ROM (see Section G.2.1, "Requirements for Windows Systems").
2. Insert the CD-ROM in your CD-ROM drive.
3. Install the Java 2 SDK and JRE.
4. Add the full path of the
- Open the
win32folder on the CD-ROM and execute thejdk1_2_2-001-win.exefile. Follow the instructions the installer program provides.jdk1.2.2\bindirectory to the PATH variable.
- Typically, the full path looks something like this:
C:\jdk1.2.2\bin5. Check the CLASSPATH variable.
6. Verify that Java is installed by typing the following:
- Include "." in your CLASSPATH or ensure that CLASSPATH is not set.
> java -version java version "1.2.2" Classic VM (build JDK-1.2.2-001, native threads, symcjit)
- If you do not get the
java version "1.2.2"message, verify that thejdk1.2.2/bindirectory is in your path in Step 4 above. If you get the above message, proceed to Section G.2.3, "Installing the Java 3D API on Windows Systems."G.2.3
To install the Java 3D API, follow these steps:Installing the Java 3D API on Windows Systems 1. Install the Java 3D SDK.
2. Install the Java 3D runtime.
- Execute the
java3d1_2-win-opengl_sdk.exefile.
3. Verify that Java 3D is installed by typing the following:
- Execute the
java3d1_2-win-opengl-rt.exefile.
> cd c:\jdk1.2.2\demo\java3d\HelloUniverse > java HelloUniverse
4. See the
- You should see a window with a multi-colored rotating cube.
README.Java3D-jdkfile in thejdk.1.2.2directory for more information about this release.
G.2.4
The javadocs for Java 3D may be installed on your system for ready access. Alternatively, you may choose to save the disk space by not installing the javadocs and read them directly from the CD-ROM whenever needed (see Section G.4, "Accessing the Documentation from the CD-ROM").Installing the Javadocs on Windows Systems You will need at least 10 megabytes of free disk space to install the Java 3D API javadocs.
1. Create a directory on your system where you want to store the javadocs (for example,
To read the javadocs, point your browser to theC:\java3d\doc).2. Open the
win32folder on the CD-ROM and select thejava3d1_2-doc.zipfile.3. Use a zip utility to unzip the
javadoc.zipfile into the directory you just created.
index.htmlfile in the newly-createdhtmldirectory.
G.3
Installing the Software on Solaris Systems G.3.1
The system on which the contents of the CD-ROM are installed should haveRequirements for Solaris Systems
- At least 38 megabytes of free disk space for the Java 2 SDK
- At least 7 megabytes of free disk space for the Java 3D API
- At least 32 megabytes of free disk space for Sun OpenGL 1.2.1 for Solaris.
- Sun OpenGL for Solaris/SPARC, version 1.2 (or later). Sun OpenGL 1.2.1 for Solaris is provided on the CD-ROM.
- A frame buffer with OpenGL support, such as Elite3D, Creator3D, or Expert3D.
- The Solaris 2.6 (or later) operating environment with the necessary patches installed (see Section G.3.3, "Installing Patches on Solaris Systems").
G.3.2
If you do not already have at least Sun OpenGL 1.2 for Solaris on your system, install Sun OpenGL 1.2.1 from the CD-ROM as follows:Installing Sun OpenGL 1.2.1 for Solaris 1. Insert the CD-ROM in your CD-ROM drive.
2.
suto root.3. Run the installation program:
% /cdrom/solaris/opengl/ogl121.sh4. Exit and restart your window system.
5. Run the
ogl_install_checkprogram to verify the installation:
% /usr/openwin/demo/GL/ogl_install_check
G.3.3
Several patches are required to run Java and Java 3D on Solaris. These patches are included on the CD-ROM in theInstalling Patches on Solaris Systems /cdrom/solaris/patchesdirectory. AREADMEfile in this directory contains the complete list of patches for Solaris 2.6, Solaris 7, and Solaris 8.To install the patches for your system, proceed as follows:
1. Insert the CD-ROM in your CD-ROM drive.
To show the installed patches, type the following:2.
suto root.3. Run the following script:
% /cdrom/solaris/patches/install_patches.csh
4. Reboot your system.
- This script determines the version of Solaris that is running and installs all necessary patches for that version.
% showrev -p
1. Insert the CD-ROM in your CD-ROM drive.
2.
suto root.3. Run
patchaddwith the path to the patch you want to install.
4. Reboot your system.
- For example:
% patchadd /cdrom/solaris/patches/5.7/105181-17
G.3.4
Installing the Java 2 SDK on Solaris Systems
Note: You must have permission to write files in the directories where you want to install Java and Java 3D. If you do not have this permission, the installation program will run to completion but Java and Java 3D will not be installed.
To install the Java 2 SDK on a Solaris system, follow these steps:1. Change directories to where you wish to install the Java 2 SDK.
2. Run the installation program.
- For example, to install on
/home/myhome:
% cd /home/myhome
% /cdrom/solaris/Solaris_JDK_1.2.2_05_sparc.bin
3. Update the PATH variable in your startup file.
- This will create a
Solaris_JDK_1.2.2_05directory containing the Java 2 SDK.
4. Check the CLASSPATH variable.
- Put
/home/myhome/Solaris_JDK_1.2.2_05/binin your path ahead of any directory that may contain java, such as/usr/bin.
5. Verify that Java is installed by typing the following:
- Include "." in your CLASSPATH or ensure that CLASSPATH is not set.
% java -version java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_05, native threads, sunwjit)
- If you do not get the
java version "1.2.2"message, verify that you have put thejdk1.2.2/bindirectory in your path in Step 3 above. If you do get the above message, proceed to Section G.3.5, "Installing the Java 3D API on Solaris Systems."G.3.5
To install the Java 3D API, follow these steps:Installing the Java 3D API on Solaris Systems 1. Change to the jdk1.2.2 directory. For example:
% cd /home/myhome/jdk1_2_22. Install the Java 3D API. Type the following:
% /cdrom/solaris/java3d1_2-solsparc.bin3. Verify that Java 3D is installed by typing the following:
% cd demo/java3d/HelloUniverse % java HelloUniverse
4. See the
- You should see a window with a multi-colored rotating cube.
README.Java3D-jdkfile in theSolaris_JDK_1.2.2_05directory for more information about this release.
G.3.6
The javadocs for Java 3D may be installed on your system for ready access. Alternatively, you may choose to save the disk space by not installing the javadocs and read them directly from the CD-ROM whenever needed (see Section G.4, "Accessing the Documentation from the CD-ROM").Installing the Javadocs on Solaris Systems You will need at least 10 megabytes of free disk space to install the Java 3D API javadocs.
1. Create a directory where you want to store the javadocs. For example:
To read the javadocs, point your browser to the
% mkdir /home/myhome/java3d/doc2. Change to the directory you just created. For example:
% cd /home/myhome/java3d/doc3. Untar the file into the newly created directory:
% zcat /cdrom/solaris/java3d1_2-doc.tar.Z | tar xvf -
index.htmlfile in the newly-createdhtmldirectory.
G.4
The javadoc-generated API documentation and the text of this book are included on the CD-ROM in a browsable (html) format. Additionally, the text of this book is included in a PDF format.Accessing the Documentation from the CD-ROM http://www.adobe.com/products/acrobat/readstep.html
| The Java 3D API Specification |
|