Patches for Kaffe 1.0.b1

Alexandre Oliva oliva at
Tue Jul 14 22:43:31 PDT 1998

Alexandre Oliva <oliva at> writes:

>>> I also agree that the script is the best place for setting CLASSPATH.

> I'll send a patch with such an implementation in a few minutes...

Here it is.  The scripts are now much smarter: every script looks for
a program named `java' or `kaffe', depending on the script name.  If
KAFFE_HOME is set, it looks for the program in $KAFFE_HOME/bin, and
uses that program if it finds it.  Otherwise, the script finds out in
which directory it lives (following soft links) and looks for the
program in the same directory.  If the program is not found in this
directory either, then the program will be looked for in the PATH.

`kaffe', the only script that actually calls `Kaffe', now defines both
LD_LIBRARY_PATH and CLASSPATH.  If CLASSPATH was already defined, the
standard CLASSPATH is appended to it; otherwise, it is set so as to
contain the current directory, then the standard CLASSPATH.  If
`' exists in the directory that contains Klasses.jar, it
will also be included in the CLASSPATH, as the very last element.

The `kaffe' script checks whether KAFFE_DEBUG is set.  If running
"$KAFFE_DEBUG" starts `gdb', then so will `kaffe'; if "$KAFFE_DEBUG"
starts GNU Emacs or XEmacs, `kaffe' will start the `gdb' interface
inside Emacs.  In both cases, the current working directory from which 
`kaffe' was invoked will be selected, and the argument list passed to
the script will be set as the argument list for `Kaffe'.


Alexandre Oliva
mailto:oliva at mailto:aoliva at
Universidade Estadual de Campinas, SP, Brasil
-------------- next part --------------
A non-text attachment was scrubbed...
Type: application/octet-stream
Size: 1590 bytes
Desc: not available
Url : 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scripts.diff
Type: application/octet-stream
Size: 16454 bytes
Desc: not available
Url : 

More information about the kaffe mailing list