[kaffe] Resin 2.1.12 runs on Kaffe smoothly

Dalibor Topic robilad at kaffe.org
Fri Mar 12 09:29:02 PST 2004

Hi Jim,

jserv at linux2.cc.ntu.edu.tw wrote:
> On Mon, Mar 08, 2004 at 04:38:20PM +0100, Dalibor Topic wrote:
>>>Some hints might be useful:
>>>  1. configure Resin with 
>>>     --enable-jni \
>>>     --with-java-home=$(KAFFE_HOME) \
>>>     --with-jni-include=$(KAFFE_HOME)/include 
>>>  2. while compiling, you would encounter some errors, just ignores.
>>I've missed out on IRC on the discussion of the errors. Could you give
>>us some more details?
>>dalibor topic
> The errors I meant is compiling errors on Resin due to lacking the
> definition JavaVMOption in <jni.h>. So that I did a fake struct JavaVMOption 
> to feed Resin, and put what I changed in the patch attached.
> I have not tested all functions in Resin 2.1.12, but it seems to work
> very well.

Based on your Resin patch, I've added some things to kaffe's jni.h: the 
missing struct and a few typedefs, so that now it should be easier to build.

The main remaining problem in the passing of JavaVMInitArgs. That has 
changed between different JNI versions. Kaffe's current JavaVMInitArgs 
is somewhat like JDK 1.1's.

We'd need to decouple KaffeVMInitArgs from JavaVMInitArgs, and change 
our command line argument parsing to deliver JavaVMInitArgs with a 
JavaVMOptions array, and adapt all the functions using JNI to the new 
scheme of things.

Would you like to have a go at it? I want to look into fixing argument 
parsing anyway.

dalibor topic

More information about the kaffe mailing list