From a4059aff8eefcd61a2d8b61de12322d4f5418bd5 Mon Sep 17 00:00:00 2001 From: Archimedes Trajano Date: Wed, 3 Jul 2019 12:58:22 -0400 Subject: [PATCH] Add the value of javac and java to help debug --- buildlib/rapt/install_sdk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildlib/rapt/install_sdk.py b/buildlib/rapt/install_sdk.py index fba334f..f033f5b 100644 --- a/buildlib/rapt/install_sdk.py +++ b/buildlib/rapt/install_sdk.py @@ -48,10 +48,10 @@ def check_java(interface): interface.info(__("I'm compiling a short test program, to see if you have a working JDK on your system.")) if not run_slow(interface, plat.javac, plat.path("buildlib/CheckJDK8.java"), use_path=True): - interface.fail(__("I was unable to use javac to compile a test file. If you haven't installed the Java Development Kit yet, please download it from:\n\nhttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html\n\nThe JDK is different from the JRE, so it's possible you have Java without having the JDK. Without a working JDK, I can't continue.")) + interface.fail(__("I was unable to use javac (%s) to compile a test file. If you haven't installed the Java Development Kit yet, please download it from:\n\nhttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html\n\nThe JDK is different from the JRE, so it's possible you have Java without having the JDK. Without a working JDK, I can't continue." % plat.javac)) if not run_slow(interface, plat.java, "-classpath", plat.path("buildlib"), "CheckJDK8", use_path=True): - interface.fail(__("The version of Java on your computer does not appear to be JDK 8, which is the only version supported by the Android SDK. If you need to install JDK 8, you can download it from:\n\nhttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html\n\nYou can also set the JAVA_HOME environment variable to use a different version of Java.")) + interface.fail(__("The version of Java (%s) on your computer does not appear to be JDK 8, which is the only version supported by the Android SDK. If you need to install JDK 8, you can download it from:\n\nhttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html\n\nYou can also set the JAVA_HOME environment variable to use a different version of Java." % plat.java)) interface.success(__("The JDK is present and working. Good!"))