import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
+import java.security.AllPermission;
+import java.security.CodeSource;
+import java.security.PermissionCollection;
+import java.security.Permissions;
+import java.security.Policy;
import java.util.HashMap;
import java.util.Map;
import java.util.Vector;
import javax.swing.LookAndFeel;
import javax.swing.UIManager;
-import com.sun.xml.ws.policy.Policy;
+import com.threerings.getdown.util.LaunchUtil;
import groovy.lang.Binding;
import groovy.util.GroovyScriptEngine;
static
{
// grab all the rights we can the JVM
- Policy.createEmptyPolicy();
- /*
Policy.setPolicy(new Policy()
{
@Override
{
}
});
- */
}
/**
System.out.println(System.getProperty("os.arch") + " "
+ System.getProperty("os.name") + " "
+ System.getProperty("os.version"));
+ // report Jalview version
+ Cache.loadBuildProperties(true);
+ String appdirString = System.getProperty("getdownappdir");
+ if (appdirString != null && appdirString.length() > 0)
+ {
+ final File appdir = new File(appdirString);
+ new Thread()
+ {
+ @Override
+ public void run()
+ {
+ LaunchUtil.upgradeGetdown(
+ new File(appdir, "getdown-launcher-old.jar"),
+ new File(appdir, "getdown-launcher.jar"),
+ new File(appdir, "getdown-launcher-new.jar"));
+ }
+ }.start();
+
+ }
ArgsParser aparser = new ArgsParser(args);
boolean headless = false;
JalviewTaskbar.setTaskbar(this);
} catch (Exception e)
{
- e.printStackTrace();
+ System.out.println("Cannot set Taskbar");
+ // e.printStackTrace();
} catch (Throwable t)
{
- t.printStackTrace();
+ System.out.println("Cannot set Taskbar");
+ // t.printStackTrace();
}
desktop.setVisible(true);