Before building the IDV you need to first install Java and Java 3D on your system. You need to use the Java SDK, because the Java RunTime Environment (JRE) does not contain the Java compiler (javac). You need to use a version of Java 1.5 (preferably the latest version). You can use either the Java 3D SDK or JRE, version 1.3.x.
You will also need to install Ant (http://ant.apache.org/)
on your machine. Ant is similar to make - instead of a
Makefile
, Ant uses a build.xml
file. Be sure to follow
the instructions for installing Ant, especially those for
setting up environment variables.
Download the IDV source files from the Unidata Web Site
(under Downloads->IDV->Source
):
You are now ready to install the IDV source.
jar xvf (downloaddir)/idv_src_6.3.jarThis will create a "src" directory underneath the install directory (where you unJAR'ed the file).
src
directory as a peer of the ucar
directory under idv
that holds the ancillary JAR files from the
IDV Binary distribution
that are needed to build the classes. The structure will
look like this:
idv | +----src | +----lib (holds the ancillary jar files).
lib
(if you are not already there).
cd /home/idv/idv/lib
unzip ../(downloaddir)/idv_jars_6.3.zip
idv.jar
.
ant idvjarThis removes all Java class files (there will be none the first time), re-builds them and creates the
idv.jar
file, copying
it to the lib directory.
lib
directory
cd ../lib
java -Xmx1024m -jar idv.jar