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

Platform.getInstalledJREList() returns only the jres of the current arch on windows.

XMLWordPrintable

    • b82

        The current implementation of getInstalledJREList returns a vector of installed jres of the current architecture.
        Since we now have inter architecture support on windows, we need it to return list of all the jres available, along with the archecture of each one. (currently, it is just assumed that all those returned are of the current architecture).

        To demonstrate, install 32 and 64 bit versions of JDK9 on windows, clear out deployment.properties (or at least the jre part of it).
        Then run 32 bit jcp.
        You will see just the 32 bit jre in the java tab.
        Then run 64 bit jcp
        You will see both the 32 and 64 bit versions in the java tab.
        You can then run 32 bit jcp and see both.

        The point is the 32 bit jres won't be "discovered" till you run some 32 bit deployment code.
        The 64 bit jres won't be "discovered till you run som 64 bit deployment code.

        Running either should discover both.

              dcherepanov Dmitry Cherepanov
              herrick Andy Herrick (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: