To run Lava you need :
The first step is to install JDK 1.2 if you have not already done so. The
JDK can be downloaded from the Javasoft Homepage
if need be. Verify that the JDK is correctly installed by issuing the command :
You should receive a version number that corresponds to JDK 1.2. NB. It is very important
that you install the correct version of the JDK as version other than 1.2 can not be relied
upon to correctly run Lava 1.4. Verify that your classpath is set up correctly by running
some of the example programs included with the JDK. Once you are sure about the integrity of
your JDK installation you are ready to install Lava.
java -version
The Lava distribution is supplied in a compressed format. To install Lava you will need to decompress the files from the distribution archive into a directory on your computer. To decompress the archive :
c:\lava
. This
directory can be anywhere you wish but for the sake of simplicity this guide
assumes you have installed Lava into c:\lava
.
You now need to ensure that the Lava class files are included in the CLASSPATH
environment variable. The class files are stored in the file lava.jar
in the
installation directory. You do not need to decompress the lava.jar
file
and can simply add it to the classpath by issuing a platform dependant command similar to :
set CLASSPATH=%CLASSPATH%;c:\lava\lava.jar
You can check that this worked by issuing platform dependant command similar to the
one below and checking for the presence of the c:\lava\lava.jar
entry in the response.
echo %CLASSPATH%
Once installation has been accomplished, you can run Lava by first changing to the installation directory. You should now issue the command :
java uk.co.demon.hnet.lava.Lava
If installation was correctly performed, this should result in the Lava splash screen appearing while Lava analyses any registered JavaBeans. The main Lava GUI will appear shortly after this happens. Any exceptions of the form java.lang.ClassNotFoundException probably mean that your CLASSPATH settings are incorrect - go back to step two.
Included in the release are some batch files that are examples of how to set up
Lava so you can run it from anywhere. By setting the lava.home
environment
variable and including the lava.jar
file in your CLASSPATH, you can run Lava
from anywhere without changing to the Lava directory. lava.bat
is an example
of how this can be done. Note the case involved in the command line as this is important.
Other command line operations for Lava are shown below :