X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FLaunchUtils.java;fp=src%2Fjalview%2Futil%2FLaunchUtils.java;h=615536afe73bde7f7b157e3ab0c739b93be55a5f;hb=c932f0e85a8852824cdd8ce790af68682732c85c;hp=eb43363ad1f7771af5b0044d83b92c9a8299edfe;hpb=8bcbf5c32f8091f2d5871e7eec4d4727c26d5c63;p=jalview.git diff --git a/src/jalview/util/LaunchUtils.java b/src/jalview/util/LaunchUtils.java index eb43363..615536a 100644 --- a/src/jalview/util/LaunchUtils.java +++ b/src/jalview/util/LaunchUtils.java @@ -67,7 +67,7 @@ public class LaunchUtils return null; } catch (IOException e) { - System.err.println(e.getMessage()); + jalview.bin.Console.errPrintln(e.getMessage()); return null; } } @@ -105,22 +105,22 @@ public class LaunchUtils null); if (JCV == null) { - Console.outputMessage( + Console.errPrintln( "Could not obtain JAVA_COMPILE_VERSION for comparison"); return -2; } JAVA_COMPILE_VERSION = Integer.parseInt(JCV); } catch (MalformedURLException e) { - System.err.println("Could not find " + buildDetails); + jalview.bin.Console.errPrintln("Could not find " + buildDetails); return -3; } catch (IOException e) { - System.err.println("Could not load " + buildDetails); + jalview.bin.Console.errPrintln("Could not load " + buildDetails); return -4; } catch (NumberFormatException e) { - System.err.println("Could not parse JAVA_COMPILE_VERSION"); + jalview.bin.Console.errPrintln("Could not parse JAVA_COMPILE_VERSION"); return -5; } @@ -144,8 +144,7 @@ public class LaunchUtils String JV = System.getProperty("java.version"); if (JV == null) { - Console.outputMessage( - "Could not obtain java.version for comparison"); + Console.errPrintln("Could not obtain java.version for comparison"); return -2; } if (JV.startsWith("1.")) @@ -156,7 +155,7 @@ public class LaunchUtils : Integer.parseInt(JV.substring(0, JV.indexOf("."))); } catch (NumberFormatException e) { - System.err.println("Could not parse java.version"); + jalview.bin.Console.errPrintln("Could not parse java.version"); return -3; } return JAVA_VERSION; @@ -177,7 +176,7 @@ public class LaunchUtils if (java_compile_version <= 0 || java_version <= 0) { - Console.outputMessage("Could not make Java version check"); + Console.errPrintln("Could not make Java version check"); return true; } // Warn if these java.version and JAVA_COMPILE_VERSION conditions exist