Menu

#31 Support finding Java 9+ on Windows

v3.2.0
open
nobody
None
5
2018-09-25
2018-04-12
WormNut
No

Java 9+ moves the Windows registry key. (Documented here and here.)

This patch searches the new path if unable to open the first. In my testing uninstalling Java 8 does remove its registry key. Thoughts on searching the new location first to prefer more recent JVMs?

1 Attachments

Discussion

  • Maxime Andrighetto

    Thank you for reporting this and writing a patch. We will also search the new Java 9 location in the next release or the Wrapper.

     
  • Maxime Andrighetto

    This issue has been fixed in Wrapper version 3.5.36.
    https://wrapper.tanukisoftware.com/doc/english/release-notes.html

    As suggested, the Wrapper will first search on the new location (HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE) to prefer more recent JVMs, then on "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment" for compatibility with Java 8 and earlier.

    Additionaly a new property wrapper.registry.java_version was added to target a specific Java version in the registry.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.