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

Better detect JRE that Linux JLI will be using

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Resolved In Build:
      b137
    • Verification:
      Verified

      Description

      This issue is reproducible with self-contained applications

          http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm

      Self-contained applications include custom native launcher and a copy of Java runtime. The internal structure of a self-contained application folder on Windows is as follow

      ./appRootFolder
      ./appRootFolder/App <=== native launcher
      ./appRootFolder/runtime <=== Java runtime

      Native launcher launches Java using JLI_Launch(). Internally, it tries to find path to JRE that JLI will be using, it’s implemented in GetJREPath() function. GetJREPath() calls to GetApplicationHome() that assumes that native launcher is co-located with Java runtime but, for self-contained apps, Java runtime is placed to a different location and GetJREPath() fails to find valid path.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbensen Chris Bensen (Inactive)
                Reporter:
                cbensen Chris Bensen (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: