Hi Tomek, I skipped this patch because it's causing too many problems. The regression test didn't compile:
make -C regression/jni make[1]: Entering directory `/home/penberg/src/jato/regression/jni' JAVAH jvm_JNITest.h CXX libjnitest.so In file included from jvm_JNITest.cpp:1: jvm_JNITest.h:2:17: error: jni.h: No such file or directory In file included from jvm_JNITest.cpp:1: jvm_JNITest.h:15: error: expected constructor, destructor, or type conversion before ‘void’ jvm_JNITest.cpp:8: error: expected constructor, destructor, or type conversion before ‘void’ make[1]: *** [libjnitest.so] Error 1 make[1]: Leaving directory `/home/penberg/src/jato/regression/jni' make: *** [jni-regression] Error 2 penb...@penberg-laptop:~/src/jato$ find -name "jni.h" because the necessary headers are in /usr/include/classpath: diff --git a/regression/jni/Makefile b/regression/jni/Makefile index 339d93d..d36e4eb 100644 --- a/regression/jni/Makefile +++ b/regression/jni/Makefile @@ -9,7 +9,7 @@ jvm_JNITest.h: libjnitest.so: jvm_JNITest.cpp jvm_JNITest.h $(E) " CXX " $@ - $(Q) $(CXX) -I`../../tools/classpath-config`/include -g -fomit-frame-pointer -o $@ -shared jvm_JNITest.cpp + $(Q) $(CXX) -I`../../tools/classpath-config`/include/classpath -g -fomit-frame-pointer -o $@ -shared jvm_JNITest.cpp clean: rm -f libjnitest.so however, when I try to run the test, Jato is unable to discover the library: make[1]: Entering directory `/home/penberg/src/jato/monoburg' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/penberg/src/jato/monoburg' MONOBURG arch/x86/insn-selector.c CC arch/x86/insn-selector.o LD jato JAVAC JASMIN make -C regression/jni make[1]: Entering directory `/home/penberg/src/jato/regression/jni' CXX libjnitest.so make[1]: Leaving directory `/home/penberg/src/jato/regression/jni' REGRESSION Exception in thread "main" java/lang/UnsatisfiedLinkError: Native library `jnitest' not found (as file `libjnitest.so') in gnu.classpath.boot.library.path and java.library.path at java.lang.Runtime.loadLibrary(Runtime.java:763) at java.lang.System.loadLibrary(System.java:662) at jvm.JNITest.main(JNITest.java:46) jvm.JNITest FAILED. Expected 0, but was: 1. Tests FAILED. I guess we should just chdir to regression/jni and run the test there or pass a proper library path to Jato. Pekka ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel