|
From: Richard Frith-M. <ri...@br...> - 2006-01-18 17:11:28
|
On 18 Jan 2006, at 03:29, Dalibor Topic wrote: > Richard Frith-Macdonald <richard <at> brainstorm.co.uk> writes: > >> >> I have a large body of code making complex use of JNI called from >> servlets in tomcat. >> >> Because this uses a lot of JNI, and was developed on the Sun >> implementation of java, I have been unable to find another >> implementation which will run it ... SableVM and Kaffe lack a lot of >> the JNI functions required. > > Have you tried with Kaffe 1.1.6 or 1.1.7-rc1? That version should > implement all > of the JNI 1.4 APIs, as far as I remember (don't have the list > handy atm). Kaffe > also works under velgrind, try KAFFE_DEBUG=valgrind kaffe yourClass. I haven't managed to get things to work with Kaffe ... at first I assumed it was a JNI problem, but I reduced things to a very simple test program and it wasn't even getting as far as loading the shared library but was actually failing to locate the java class which used it ... despite having CLASSPATH set up to point to it (and trying the -classpath command line argument). I've been looking at lots of kaffe debug output, and it doesn't seem to be initialising the internal classpath correctly (the latest debian unstable package for the amd64), and my current best guess is that kaffe has bugs in 64bit mode. The only way I'm likely to find out for sure is to build a version from source and run under gdb to see exactly what's going on when it starts up :-( |