Communicator e3000 MPE/iX Release 6.0 Express 1 (C.60.01) (30216-90286)

48 Chapter3
Technical Articles
Java Developers Kit for MPE/iX Version 1.1.7B Release Notes
applications will immediately start using it. You can keep as many releases of the JDK on
the system as you like. Those releases other than the one pointed to by the /latest/
symbolic link will have to be referred to through a path that includes the version number,
or in some other fashion. For example, you could create your own symbolic link in the shell
as follows:
$ ln -s /usr/local/java/jdk1.1.5 /usr/local/java/production
and then use this /production/ path in your applications. This would allow you to install
new releases of the JDK without impacting your current Java applications. Once you have
tested a new release, you can simply change the /production/ link to point to the new
version.
To remove a version of Java from your system, simply remove all files starting at
/usr/local/java/<version>
For example, if you wish to remove the 1.1.5 version of Java after (or before) installing
1.1.7B, you can use the command:
$ rm -rf /usr/local/java/jdk1.1.5
Important Directories under /usr/local/java/latest
/bin Contains the user executables. This is the directory that needs to be on
your PATH in order to execute Java programs. The actual executables are
in /bin/PA-RISC/green_threads/.
/lib Contains the standard Java classes.zip file and some config files. Shared
libraries (XL files) implementing the runtime Java system are in
/lib/PA-RISC/green_threads/.
Invoking Java from the POSIX Shell
For convenience, the directory /usr/local/java/latest/bin should be added to your PATH
environment variable. This can be done in a user’s .profile, or in the system wide
/etc/profile.local file with a command such as:
export PATH=/usr/local/java/latest/bin:$PATH
Java can also be invoked by specifying the full path to the executable, as in:
$ /usr/local/java/latest/bin/java HelloWorld
Of course, it is possible to specify a specific version of Java as in:
$ /usr/local/java/jdk1.1.7/bin/java HelloWorld
With version 1.1.7B, the set of environment variables required for Java have been
simplified. You no longer need to set SYSNAME or THREADS_FLAG.
CLASSPATH
The CLASSPATH environment variable needs to be set only if you need to specify
nonstandard directories other than “.” for finding .class files.
If you have not set CLASSPATH, the default path will include these directories:
/usr/local/java/jdk1.1.7/classes