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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.2-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: native
    • Labels:
      None
    • Hadoop Flags:
      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 P. McCabe
        2. HADOOP-8737.002.patch
          2 kB
          Colin P. McCabe

          Issue Links

            Activity

              People

              • Assignee:
                cmccabe Colin P. McCabe
                Reporter:
                cmccabe Colin P. McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: