JAL-629 Move more stdout messages to stderr when outputting file to stdout
[jalview.git] / src / jalview / util / LaunchUtils.java
index 5bd4a08..eb43363 100644 (file)
@@ -29,6 +29,8 @@ import java.net.MalformedURLException;
 import java.net.URL;
 import java.util.Properties;
 
+import jalview.bin.Console;
+
 public class LaunchUtils
 {
 
@@ -103,7 +105,7 @@ public class LaunchUtils
               null);
       if (JCV == null)
       {
-        System.out.println(
+        Console.outputMessage(
                 "Could not obtain JAVA_COMPILE_VERSION for comparison");
         return -2;
       }
@@ -142,7 +144,8 @@ public class LaunchUtils
       String JV = System.getProperty("java.version");
       if (JV == null)
       {
-        System.out.println("Could not obtain java.version for comparison");
+        Console.outputMessage(
+                "Could not obtain java.version for comparison");
         return -2;
       }
       if (JV.startsWith("1."))
@@ -174,7 +177,7 @@ public class LaunchUtils
 
     if (java_compile_version <= 0 || java_version <= 0)
     {
-      System.out.println("Could not make Java version check");
+      Console.outputMessage("Could not make Java version check");
       return true;
     }
     // Warn if these java.version and JAVA_COMPILE_VERSION conditions exist