From 11ddaefa4bdef4cf3fd8fa4436e2a2a9aed1e090 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Fri, 11 Feb 2022 12:39:51 +0000 Subject: [PATCH] JAL-3949 read ~/.jalview_properties before initialising the logging --- src/jalview/bin/Jalview.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 920c86d..f01cbb6 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -284,17 +284,6 @@ public class Jalview System.out.println("Launcher version: " + val); } - try - { - Cache.initLogger(); - } catch (NoClassDefFoundError error) - { - error.printStackTrace(); - System.out.println("\nEssential logging libraries not found." - + "\nUse: java -classpath \"$PATH_TO_LIB$/*:$PATH_TO_CLASSES$\" jalview.bin.Jalview"); - System.exit(0); - } - // report Jalview version Cache.loadBuildProperties(true); @@ -377,6 +366,17 @@ public class Jalview System.setProperty("http.agent", "Jalview Desktop/" + Cache.getDefault("VERSION", "Unknown")); + try + { + Cache.initLogger(); + } catch (NoClassDefFoundError error) + { + error.printStackTrace(); + System.out.println("\nEssential logging libraries not found." + + "\nUse: java -classpath \"$PATH_TO_LIB$/*:$PATH_TO_CLASSES$\" jalview.bin.Jalview"); + System.exit(0); + } + desktop = null; setLookAndFeel(); -- 1.7.10.2