Results 1 to 6 of 6

Thread: checking for javah in user's PATH... not found

  1. #1

    Default checking for javah in user's PATH... not found

    Hello,

    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?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,976

    Default Re: checking for javah in user's PATH... not found

    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
    /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/bin/javah.

    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,
    Henk van Velden

  3. #3

    Default Re: checking for javah in user's PATH... not found

    Hello,

    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?

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,976

    Default Re: checking for javah in user's PATH... not found

    Which one, the jdk one or the sun one?
    Henk van Velden

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,976

    Default Re: checking for javah in user's PATH... not found

    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?
    Henk van Velden

  6. #6

    Default Re: checking for javah in user's PATH... not found

    ok,

    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:

    /usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/include/jni.h

    I have no clue what's the valid include dir?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •