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

Chapter 3 49
Technical Articles
Java Developers Kit for MPE/iX Version 1.1.7B Release Notes
/usr/local/java/jdk1.1.7/lib/classes
/usr/local/java/jdk1.1.7/lib/classes.zip
If you have set CLASSPATH, the following directories will be APPENDED to the list you
provide:
/usr/local/java/jdk1.1.7/classes
/usr/local/java/jdk1.1.7/lib/classes
/usr/local/java/jdk1.1.7/lib/classes.zip
NOTE
If you are running ‘appletviewer’, and have not set CLASSPATH, the current
directory (“.”) will not be included in the default CLASSPATH for security
reasons.
If all your .class files are in your current working directory, you need not set CLASSPATH at
all. If you need to have a directory of your own included in the CLASSPATH, you need only
include that directory (and “.” if you want it) when you set CLASSPATH. You do not need to
include the standard Java classes.zip, or the other “system” directories above, as they
will be appended to your CLASSPATH automatically. Note that this is NOT the case if you
use the -classpath command line option of the various Java executables. In that case you
must specify ALL the locations to be searched. Because of this, the CLASSPATH
environment variable method is greatly preferred. JDK 1.2 (the Java 2 platform) will fix
this aspect of the -classpath command line option so that it behaves the same as the
CLASSPATH environment variable.
LD_LIBRARY_PATH
If you will be invoking native code from your Java program (using JNI, or perhaps the
TurboImage class library), Java needs to know where to look for any native libraries that
your code tries to load. This is the purpose of the LD_LIBRARY_PATH environment variable.
If you are not invoking your own native code, then you do not need to set this variable.
If you do not set LD_LIBRARY_PATH, the default will include the following directory, which
contains the standard Java runtime shared libraries:
/usr/local/java/jdk1.1.7/lib/PA-RISC/green_threads
If you set LD_LIBRARY_PATH, then YOUR list of directories will be APPENDED AFTER the
above directory.
New Just-In-Time Compiler
The 1.1.7B release of Java/iX includes the latest version of Hewlett-Packard’s Just-In-Time
(or JIT) Compiler for Java, which provides increased performance for Java programs by
transparently converting the interpreted virtual machine bytecodes into native PA-RISC
instructions at runtime.
The JIT defaults to being enabled, but can be disabled by passing the -nojit option to the
java command, or the -J-nojit option to javac and many of the other JDK commands.