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 Bug
    • Status: Closed
    • Priority: Minor 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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Colin Patrick McCabe
              Reporter:
              Colin Patrick McCabe
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development