{
return _initialisedConfig;
}
+
+ try {
+ Application.i4jVersion = com.install4j.api.launcher.Variables.getCompilerVariable("sys.install4jVersion");
+ } catch (IOException e)
+ {
+ System.err.println("install4j version not available");
+ } catch (NoClassDefFoundError e)
+ {
+ log.warning("Starting without install4j classes");
+ } catch (Throwable t)
+ {
+ System.err.println("install4j not available");
+ t.printStackTrace();
+ }
+
Config config = null;
File cfgfile = _config;
Config.ParseOpts opts = Config.createOpts(checkPlatform);
// add the marker indicating the app is running in getdown
args.add("-D" + Properties.GETDOWN + "=true");
- args.add("-Dsys.install4jVersion=" + Variables.getCompilerVariable("sys.install4jVersion"));
+ args.add("-Dsys.install4jVersion=" + Application.i4jVersion);
args.add("-Dinstaller_template_version=" + System.getProperty("installer_template_version"));
args.add("-Dlauncher_version=" + Build.version());
private boolean _initialised = false;
private Config _initialisedConfig = null;
+
+ public static String i4jVersion = null;
}
t.printStackTrace();
}
- try {
- StatusPanel.i4jVersion = com.install4j.api.launcher.Variables.getCompilerVariable("sys.install4jVersion");
- } catch (IOException e) {
- System.err.println("install4j version not available");
- } catch (Throwable t) {
- System.err.println("install4j not available");
- t.printStackTrace();
- }
// record a few things for posterity
log.info("------------------ VM Info ------------------");
log.info("-- OS Name: " + System.getProperty("os.name"));
log.info("-- OS Vers: " + System.getProperty("os.version"));
log.info("-- Java Vers: " + System.getProperty("java.version"));
log.info("-- Java Home: " + System.getProperty("java.home"));
- log.info("-- Install4j Vers: " + StatusPanel.i4jVersion);
+ log.info("-- Install4j Vers: " + Application.i4jVersion);
log.info("-- Install4j Template Vers: " + System.getProperty("installer_template_version"));
log.info("-- User Name: " + System.getProperty("user.name"));
log.info("-- User Home: " + System.getProperty("user.home"));
import com.samskivert.swing.util.SwingUtil;
import com.samskivert.util.Throttle;
+import com.threerings.getdown.data.Application;
import com.threerings.getdown.data.Application.UpdateInterface;
import com.threerings.getdown.data.Build;
import com.threerings.getdown.util.MessageUtil;
if (_ifc.displayVersion) {
labelText.append("launcher version: " + Build.version());
labelText.append("\n");
- labelText.append("install4j version: " + i4jVersion);
+ labelText.append("install4j version: " + Application.i4jVersion);
labelText.append("\n");
labelText.append("installer version: " + System.getProperty("installer_template_version"));
labelText.append("\n");
protected static final Font FONT = new Font("SansSerif", Font.BOLD, 12);
public String _appbase;
-
- public static String i4jVersion = null;
}
package jalview.bin;
import com.threerings.getdown.launcher.GetdownApp;
+import com.threerings.getdown.launcher.StatusPanel;
import static com.threerings.getdown.Log.log;
public class StartupNotificationListener {