Kaydet (Commit) 7df57f69 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Find JDK 9 on Windows

Change-Id: I8854d0e7fb23602e5ca20309fc79890b4f31a70e
Reviewed-on: https://gerrit.libreoffice.org/47479Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 2d28107c
...@@ -6563,13 +6563,23 @@ if test "$ENABLE_JAVA" != ""; then ...@@ -6563,13 +6563,23 @@ if test "$ENABLE_JAVA" != ""; then
fi fi
if test -z "$with_jdk_home"; then if test -z "$with_jdk_home"; then
for ver in 1.8 1.7 1.6; do dnl See <https://docs.oracle.com/javase/9/migrate/toc.htm#JSMIG-GUID-EEED398E-AE37-4D12-
reg_get_value "$bitness" "HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Development Kit/$ver/JavaHome" dnl AB10-49F82F720027> section "Windows Registry Key Changes":
if test -n "$regvalue"; then reg_get_value "$bitness" "HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/JDK/CurrentVersion"
_jdk_home=$regvalue if test -n "$regvalue"; then
break ver=$regvalue
fi reg_get_value "$bitness" "HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/JDK/$ver/JavaHome"
done _jdk_home=$regvalue
fi
if test -z "$with_jdk_home"; then
for ver in 1.8 1.7 1.6; do
reg_get_value "$bitness" "HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Development Kit/$ver/JavaHome"
if test -n "$regvalue"; then
_jdk_home=$regvalue
break
fi
done
fi
if test -f "$_jdk_home/lib/jvm.lib" -a -f "$_jdk_home/bin/java.exe"; then if test -f "$_jdk_home/lib/jvm.lib" -a -f "$_jdk_home/bin/java.exe"; then
with_jdk_home="$_jdk_home" with_jdk_home="$_jdk_home"
howfound="found automatically" howfound="found automatically"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment