Patches for Kaffe 1.0.b1

Alexandre Oliva oliva at dcc.unicamp.br
Tue Jul 14 22:43:31 PDT 1998


Alexandre Oliva <oliva at dcc.unicamp.br> 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
`classes.zip' 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'.

Enjoy!

-- 
Alexandre Oliva
mailto:oliva at dcc.unicamp.br mailto:aoliva at acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kaffe.in.diff
Type: application/octet-stream
Size: 1590 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/19980715/b13b5ffb/attachment-0012.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scripts.diff
Type: application/octet-stream
Size: 16454 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/19980715/b13b5ffb/attachment-0013.obj 


More information about the kaffe mailing list