configure error

Help
Hal Engel
2005-02-10
2013-05-08
  • Hal Engel
    Hal Engel
    2005-02-10

    I am gettting the following error message:

    configure: error:
            java must be installed on your system
            but configure could not find it.

    I am running SuSE 9.1 and I have both the Java Run time environment and the Java SDK installed from the distro RPMs. What else do I need to get this to configure.

     
    • Hal Engel
      Hal Engel
      2005-02-10

      Just to add more info.  The configure script is reporting that java home is /usr/local.  Here is the complete section from teh configure output dealing with the java error:

      checking for JAVA installation at ...
      configure: java home set to /usr/local
      checking jni.h usability... no
      checking jni.h presence... no
      checking for jni.h... no
      checking if JAVA package is complete... no
      configure: error:
              java must be installed on your system
              but configure could not find it.

      env | grep java returns the following on my machine:

      JRE_HOME=/usr/lib/java/jre
      PATH=/opt/gps/bin:/opt/gps/bin:/home/heng/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/bin:.
      JAVA_BINDIR=/usr/lib/java/bin
      JAVA_HOME=/usr/lib/java
      SDK_HOME=/usr/lib/java
      JDK_HOME=/usr/lib/java
      JAVA_ROOT=/usr/lib/java

      So I figured out how to get configure to find the right value:

      ./configure --with-java=$JAVA_HOME

      Never compiled anything with java before so I learned something new today.  Perhaps this will help someone else.