Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8737

cmake: always use JAVA_HOME to find libjvm.so, jni.h, jni_md.h

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.2-alpha
    • 2.0.2-alpha
    • native
    • None
    • Reviewed

    Description

      We should always use the libjvm.so, jni.h, and jni_md.h under JAVA_HOME, rather than trying to look for them in system paths. Since we compile with Maven, we know that we'll have a valid JAVA_HOME at all times. There is no point digging in system paths, and it can lead to host contamination if the user has multiple JVMs installed.

      Attachments

        1. HADOOP-8737.001.patch
          2 kB
          Colin McCabe
        2. HADOOP-8737.002.patch
          2 kB
          Colin McCabe

        Issue Links

          Activity

            People

              cmccabe Colin McCabe
              cmccabe Colin McCabe
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: