OpenJIT

Installation Manual

 

Installation of the OpenJIT source package

To build OpenJIT from a source package:
  1. Unpack a source package, everywhere you want.
    > gunzip -c OpenJIT-1.1.12.tar.gz | tar xf -
  2. Do 'configure' script in the unpacked directory.
    > cd OpenJIT-1.1.12
    > ./configure
  3. Do 'make' (GNU make is needed)
    > gmake
  4. Create 'OpenJIT.jar' (for JDK 1.1.x only)
    > gmake OpenJIT.jar
The steps of installing binaries you built above, vary with the version of the JDK.
For JDK version 1.1.x
There's nothing to do for just running OpenJIT. But, you can move files necessary for running, into your favorite directory.
Example: (The install direcotry is '/usr/local/OpenJIT-1.1.12')
> mkdir /usr/local/OpenJIT-1.1.12
> cp OpenJIT.jar libOpenJIT.so /usr/local/OpenJIT-1.1.12
For JDK version 1.2 or later
You must copy many files into 'jre' directory, which is a sub-directory of the JDK you installed.
Example: (Solaris SPARC/JDK 1.2.2)
> cp libOpenJIT.so /usr/local/jdk1.2.2/jre/lib/sparc
> mkdir /usr/local/jdk1.2.2/jre/classes
> tar cf - org/OpenJIT/*.class | (cd /usr/local/jdk1.2.2/jre/classes; tar xf -)
Example: (Linux x86/JDK 1.2pre2)
> cp libOpenJIT.so /usr/local/jdk1.2pre2/jre/lib/i386
> mkdir /usr/local/jdk1.2pre2/jre/classes
> tar cf - org/OpenJIT/*.class | (cd /usr/local/jdk1.2pre2/jre/classes; tar xf -)

Installation of the OpenJIT binary package

The steps of installing binary package vary with the version of the JDK.
For JDK version 1.1.x
Unpack a binary package, everywhere you want.
Example:
> gunzip -c OpenJIT-sparc-solaris-jdk118.tar.gz | (cd /usr/local; tar xf -)
It contains the following files:
OpenJIT-1.1.7/OpenJIT.jar
OpenJIT-1.1.7/libOpenJIT.so
OpenJIT-1.1.7/libOpenJIT_g.so
For JDK version is 1.2 or later
Unpack a binary package into 'jre' directory, which is a sub-directory of the JDK you installed.
Example: (If you've already installed JDK 1.2.2 into '/usr/local/jdk1.2.2')
> gunzip -c OpenJIT-sparc-solaris-jdk122.tar.gz | (cd /usr/local/jdk1.2.2/jre; tar xf -)
A binary package contains the following files:
classes/org/OpenJIT/BCinfo.class
classes/org/OpenJIT/Compile.class
...
lib/<architecture-name>/libOpenJIT.so
lib/<architecture-name>/libOpenJIT_g.so

How to run OpenJIT

For JDK version 1.1.x
Set several environment variables:
Example: (The directory of OpenJIT is '/usr/local/OpenJIT-1.1.12')
> setenv CLASSPATH /usr/local/OpenJIT-1.1.7/OpenJIT.jar:$CLASSPATH
> setenv LD_LIBRARY_PATH /usr/local/OpenJIT-1.1.7:$LD_LIBRARY_PATH
> setenv JAVA_COMPILER OpenJIT
> java Hello
For JDK version 1.2 or later
Set 'JAVA_COMPILER' variable to 'OpenJIT'
Example:
> setenv JAVA_COMPILER OpenJIT
> java Hello

openjit@is.titech.ac.jp