X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=blobdiff_plain;f=getdown%2Fsrc%2Fgetdown%2Flauncher%2Fsrc%2Fmain%2Fjava%2Fcom%2Fthreerings%2Fgetdown%2Flauncher%2FGetdownApp.java;h=799fa96dbfdb8e5189ee2ce94daeb96dd2dfec3a;hp=5e168ff240590f4ab26ddf6f24f05be5a99c6fd8;hb=a44bf47650800c7fcb0a6d493e1c52e13f4e4e76;hpb=f5bf054e21d902fc452fd235c2901969562f21ce diff --git a/getdown/src/getdown/launcher/src/main/java/com/threerings/getdown/launcher/GetdownApp.java b/getdown/src/getdown/launcher/src/main/java/com/threerings/getdown/launcher/GetdownApp.java index 5e168ff..799fa96 100644 --- a/getdown/src/getdown/launcher/src/main/java/com/threerings/getdown/launcher/GetdownApp.java +++ b/getdown/src/getdown/launcher/src/main/java/com/threerings/getdown/launcher/GetdownApp.java @@ -27,7 +27,6 @@ import javax.swing.JFrame; import javax.swing.KeyStroke; import javax.swing.WindowConstants; -import com.install4j.api.launcher.StartupNotification; import com.samskivert.swing.util.SwingUtil; import com.threerings.getdown.data.Application; import com.threerings.getdown.data.EnvConfig; @@ -35,6 +34,7 @@ import com.threerings.getdown.data.SysProps; import com.threerings.getdown.util.LaunchUtil; import com.threerings.getdown.util.StringUtil; import static com.threerings.getdown.Log.log; +import jalview.bin.StartupNotificationListener; /** * The main application entry point for Getdown. @@ -94,18 +94,16 @@ public class GetdownApp try { - StartupNotification.registerStartupListener( - new StartupNotification.Listener() { - @Override - public void startupPerformed(String parameters) - { - log.warning("StartupNotification.Listener.startupPerformed: '"+parameters+"'"); - setStartupFilesParameterString(parameters); - } - }); + jalview.bin.StartupNotificationListener.setListener(); } catch (Exception e) { e.printStackTrace(); + } catch (NoClassDefFoundError e) + { + log.warning("Starting without install4j classes"); + } catch (Throwable t) + { + t.printStackTrace(); } // record a few things for posterity