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

Better detect JRE that JLI will be using

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • tools
    • b102
    • Not verified

      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.exe <=== 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.

            dtitov Daniil Titov (Inactive)
            dcherepanov Dmitry Cherepanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: