From: Jim Procter Date: Mon, 25 Apr 2016 20:35:20 +0000 (+0100) Subject: JAL-2074 disable security manager at start up re: http://lopica.sourceforge.net/faq... X-Git-Tag: Release_2_10_0~227^2~9^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2d3d981f9d654c6804612c9058dc607a7b7fb0bc;p=jalview.git JAL-2074 disable security manager at start up re: lopica.sourceforge.net/faq.html#nosandbox --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 8fe3bca..229c6c2 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -68,6 +68,7 @@ public class Jalview // grab all the rights we can the JVM Policy.setPolicy(new Policy() { + @Override public PermissionCollection getPermissions(CodeSource codesource) { Permissions perms = new Permissions(); @@ -75,6 +76,7 @@ public class Jalview return (perms); } + @Override public void refresh() { } @@ -89,6 +91,7 @@ public class Jalview */ public static void main(String[] args) { + System.setSecurityManager(null); System.out.println("Java version: " + System.getProperty("java.version")); System.out.println(System.getProperty("os.arch") + " " @@ -729,6 +732,7 @@ public class Jalview + "\n\n(you can enable or disable usage tracking in the preferences)", new Runnable() { + @Override public void run() { Cache.log @@ -738,6 +742,7 @@ public class Jalview } }, new Runnable() { + @Override public void run() { Cache.log.debug("Not enabling Google Tracking."); @@ -1040,6 +1045,7 @@ public class Jalview class rnabuttonlistener implements ActionListener { + @Override public void actionPerformed(ActionEvent arg0) { System.out.println("Good idea ! "); @@ -1049,6 +1055,7 @@ class rnabuttonlistener implements ActionListener class pbuttonlistener implements ActionListener { + @Override public void actionPerformed(ActionEvent arg0) { @@ -1169,6 +1176,7 @@ class FeatureFetcher new Thread(new Runnable() { + @Override public void run() { synchronized (us)