tora - Takamichi Akiyama schrieb:
Ulf Wendel wrote:
> after solving my little ant issue I ran into "could not open jni.h".
How about use of --with-jdk-home=/usr/j2se or like that?
find /usr/j* -name jni.h
/usr/j2se/include/jni.h
/usr/jdk/instances/jdk1.5.0/include/jni.h
/usr/jdk/instances/jdk1.6.0/include/jni.h
I do use --with-jdk-home = ...
CC=cc CXX=CC ./configure CPPFLAGS="-I/usr/jdk/latest/include/
-I/usr/jdk/latest/include/solaris" --disable-build-mozilla
--disable-mediawiki --with-use-shell=bash
--with-jdk-home=/usr/jdk/latest/ --with-system-curl --without-java
--with-epm=internal --with-system-libxml --with-system-python
--with-ant-home=/usr/bin
... and both jni.h and jni_md.h (a follow-up requirement) are available
in /usr/jdk/latest/. /usr/jdk/latest is a softlink pointing to the
latest installed version of the JDK:
-bash-3.2$ ls -la /usr/jdk/latest/include/jni.h
-rw-r--r-- 1 root bin 67831 Aug 15 20:31
/usr/jdk/latest/include/jni.h
-bash-3.2$ ls -la /usr/jdk/latest/include/solaris/jni_md.h
-rw-r--r-- 1 root bin 453 Aug 15 20:31
/usr/jdk/latest/include/solaris/jni_md.h
Its OK that I might have to set additional CPPFLAGS. I'd be fine if it
would work. Using the OpenSolaris Java packages, which is my intention,
I'll find jni.h in:
-bash-3.2$ pfexec pkg search -r jni.h
INDEX ACTION VALUE PACKAGE
[...]
basename file usr/jdk/instances/jdk1.6.0/include/jni.h
pkg:/[EMAIL PROTECTED]
-bash-3.2$ locate jni.h
/export/home/nixnutz/oo.org-m28/moz/unxsoli4.pro/inc/java/jni.h
/export/home/nixnutz/oo.org-m28/solver/300/unxsoli4.pro/inc/mozilla/java/jni.h
/usr/include/firefox/java/jni.h
/usr/jdk/instances/jdk1.6.0/include/jni.h
Christian asked me earier why I am using --with-jdk-home together with
--without-java. Several modules look out for jni.h. I was hoping that
--without-java means no need for a JDK but that seems to be a false
assumption.
Only way out of the issue which I found so far is copying the required
JDK include header into the module directories, but of course that's no
solution.
Ulf
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]