I try to install some scientific software from source and get the following warning, when I run ./configure:
checking for javah in user’s PATH… not found
checking for javah in known locations… not found
configure: WARNING: Invalid JNI include dir, exit!
I have sun’s jdk 1.6 installed but apparently there’s no javah.
I use opensuse 11.2 x86_64.
How can I fix that?
When I use YaST > Software > Software manager and then Search for javah with the “Filelist” checked it tells me that the package java-1_6_0-openjdk-devel contains the file
Now you say you have “sun’s jdk 1.6” installed. I have both* java-1_6_0-openjdk* and java-1_6_0-sun packages installed, but no “sun jdk”. It is not normal to have both. Most people use the sun version allthough it is not open source.
I have also* java-1_6_0-openjdk-devel* installed (and it containts javah as shown above). But there is also a java-1_6_0-sun-devel in the repos. I suggest you decide what you use (jdk or sun) and then install the appropriate devel package,
there isn’t an development file in the repositories for opensuse 11.2.
The version for opensuse 11.0 that can be fount on the opensuse webite doesn’t work and causes a dependency problem with libjpeg…
Where did you find it?
Which one, the jdk one or the sun one?
The openjdk one is on the OSS repos.
The sun one is on the nonOSS repos.
Both have updated versions in the Update repos.
I have 32 bit. Could it be that 64 bit is different here?
I found a version that works so the javah problem is fixed but
the “configure: WARNING: Invalid JNI include dir, exit!” problem remains.
jni.h is in:
I have no clue what’s the valid include dir?