The GJ compiler is installed in /home/java/extensions/gj/.
Note: GJ only works properly with jdk 1.2. Its behaviour under a lower version is unpredictable.
"setpath /home/java/extensions/gj/bin"
to set up your environment and
Due to a change in the JDK between versions 1.1 and 1.2 it is
not as simple to get GJ or Pizza to work with 1.2. In 1.1 the
JDK appended its home to the
An analogous alias needs to be constructed for Pizza if you are
trying to use that with Java 1.2.
gjc
to invoke the
compiler.
A more involved method
(Also applicable to Pizza with JDK 1.2)
CLASSPATH
environment
variable. In 1.2 the JDK home is prepended. This means that
some of the classes redefined for GJ will not be found(it will
find the default ones first) by the JDK unless the the
-classpath
flag is used explicitly on the command
line. This leaves a nasty alias required to set up GJ (and
Pizza for 1.2).
alias gjc="java -ms12m -classpath /home/java/extensions/gj/classes:$CLASSPATH gjc.Main"
Java Support
Last modified: Wed Sep 2 10:45:38 BST 1998