Re: [tcljava-user] TclBlend on SuSE7.0 with JDK1.1.8 (or JDK1.2.2)
Brought to you by:
mdejong
From: Mo D. <md...@cy...> - 2000-11-08 09:51:16
|
On Wed, 8 Nov 2000 tcl...@li... wrote: > Hello, > > when I start to configure TclBlend (1.3 from SourceForge) > the configuration stops with the following last words: > > > Using the following JNI include flags -I/usr/lib/java/include -I/usr/lib/java/include/linux > > checking to see if jni.h can be included... yes > > Using the following JNI library flags > > Using the following runtime library path > > checking to see if we can link a JNI application... > > configure: error: could not link file that includes jni.h > > It is likely that your JVM install is broken or corrupted Yeah, it looks like the configure script does not know where to find your JNI libs. Perhaps that error message about "your JVM install is broken or corrupted" is not all that helpful in the case where the libs can not even be found. If you open up tcljava.m4 and look at the AC_JAVA_JNI_LIBS macro, you will find the place where it tries to find the JNI libs for a given system configuration. It does this by looking for "known layouts". It works on most configurations but it would seem that yours needs to be added to the script. Are you using a Sun JVM, the one from blackdown, or the one from IBM? They each might install the native libs in a different spot (yeah, it sucks but what can be done???). So first, cd to /usr/lib/java and run find . -name "libjava*.so*" find . -name "libjvm*.so*" find . -name "libhpi*.so*" And see what that prints. That should tell you where the libs for your system live. If you have both native and green thread libs, make sure you use the native thread ones. You might also want to put in an extra check to see if ac_java_jvm_jni_lib_flags is "" and then raise an error of print a better message like "Your JVM configuration is not known, please edit the AC_JAVA_JNI_LIBS macro in tcljava.m4 to add support for it." Mo DeJong Red Hat Inc |