 |
Installing VisAD using visad.jar
- Install Java.
- Optionally, install
Java3D.
To test the Java3D installation, you can run the examples
that come with Java3D.
- Download the
visad.jar file.
With Netscape, you may need to hold Shift while clicking the file's link.
Choose a safe directory where you can store the file.
- Set your CLASSPATH environment variable to point to the location
of the visad.jar file that you just downloaded.
- On a Solaris machine, add the following line to your login script:
- set CLASSPATH /home/username/visad.jar
where /home/username/visad.jar is your visad.jar
from step 3. Then, log out and back in again.
- On a Linux machine, add the following line to your login script:
- export CLASSPATH=/home/username/visad.jar
where /home/username/visad.jar is your visad.jar
from step 3. Then, log out and back in again.
- On a Windows NT/2000/XP machine, right-click My Computer, choose
Properties, go to the Environment tab, and add a variable
called CLASSPATH with value:
- C:\visad.jar
where C:\visad.jar is your visad.jar from step 3.
Then, log out and back in again.
- On a Windows 9X machine, add the following line to your
AUTOEXEC.BAT file:
- set CLASSPATH=C:\visad.jar
where C:\visad.jar is your visad.jar from step 3.
Then, reboot your machine.
- Try running the VisAD SpreadSheet to verify your installation:
- java visad.ss.SpreadSheet
You should see a complex GUI with four black display panels. If you installed
Java3D, you will be able to visualize data in VisAD in 3-D. Otherwise, you
will be limited to 2-D only.
|
 |
Installing VisAD from Java source code
- Install Java.
- Optionally, install
Java3D.
To test the Java3D installation, you can run the examples
that come with Java3D.
- Choose a directory as your base directory for Java source files.
- On a Solaris machine, you could use:
- ~username/java
where ~username is your user name.
- On a Windows machine, you could use:
- C:\Java
Create this directory if it does not already exist.
- Set your CLASSPATH environment variable to equal the chosen
directory along with the current directory (.).
- On a Solaris machine, add the following line to your login script:
- set CLASSPATH /home/username/java;.
where /home/username/java is your directory from step 3.
Then, log out and back in again.
- On a Windows NT/2000/XP machine, right-click My Computer, choose
Properties, go to the Environment tab, and add a variable called
CLASSPATH with value:
- C:\Java;.
where C:\Java is your directory from step 3.
Then, log out and back in again.
- On a Windows 9X machine, add the following line to your
AUTOEXEC.BAT file:
- set CLASSPATH=C:\Java;.
where C:\Java is your directory from step 3.
Then, reboot your machine.
- Download the
visad_src-2.0.jar file.
With some browsers, you may need to right-click and choose "Save link as"
or similar option.
Save the file to your Java base directory from step 3.
- From the command line, change to your Java base directory, then type:
- jar xvf visad_src-2.0.jar
You will see the VisAD source files being extracted into their appropriate
directory structure.
- Compile VisAD. If you are on a Unix system, type:
- cd visad
- make compile
If you are on a Windows system, type:
- cd visad
- nmake -f Makefile.WinNT compile
Note that the nmake command requires that you have
Microsoft's NMAKE utility installed on your system.
Be patient while VisAD compiles. It may take a few minutes depending on your
system configuration.
- Try running a simple VisAD example to verify your installation:
- cd examples
- java SimpleImage
You should see a 3-D display that can be rotated with the mouse.
|
 |