Re: [tcljava-user] TclBlend on SuSE7.0 with JDK1.1.8 (or JDK1.2.2)
Brought to you by:
mdejong
From: Christian K. <chr...@so...> - 2000-11-14 18:53:48
|
Hello, Mo DeJong wrote: > > when I start to configure TclBlend (1.3 from SourceForge) > > the configuration stops with the following last words: [...] > > > 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. [...] > 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. The problem was that the configure script expects to find the libjvm in a subdirectory linux, e.g. /usr/lib/jdk1.1.8/lib/linux/native_threads/libjava.so But on SuSE7.0 (and before) this subdirectory is called i386! So I created a softlink: ln -s i386 /usr/lib/jdk1.1.8/lib/linux and now it works! > 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." Sorry but I don't get autoconf 2.14 up and running. The generated configure script creates error messages one after the other. So here is only the workaround for SuSE users, but no patch for the configure.in (or tcljava.m4) Greetings, Krischan -- Christian Krone, SQL Datenbanksysteme GmbH Mail mailto:chr...@so... |