Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8343293

Remove the check for <apphome>/jre/lib/libjava.dylib from the launcher's java_md_macosx.m

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • tools
    • b24

      https://bugs.openjdk.org/browse/JDK-8329862 cleaned up the launcher's native code to remove the checks for the presence of a JRE. Those checks were removed from the Windows and Unix variants of the launcher code. It looks like these checks weren't removed from the macosx variant of the launcher, probably due to an oversight. We currently have the following check only in macosx:

      /* Does the app ship a private JRE in <apphome>/jre directory? */
      JLI_Snprintf(libjava, sizeof(libjava), "%s/jre/lib/" JAVA_DLL, path);
      if (access(libjava, F_OK) == 0) {
          JLI_StrCat(path, "/jre");
          JLI_TraceLauncher("JRE path is %s\n", path);
          return JNI_TRUE;
      }

      This should be removed from the the launcher's macosx code.

            jpai Jaikiran Pai
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: