From 2d3d981f9d654c6804612c9058dc607a7b7fb0bc Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 25 Apr 2016 21:35:20 +0100 Subject: [PATCH] JAL-2074 disable security manager at start up re: http://lopica.sourceforge.net/faq.html#nosandbox --- src/jalview/bin/Jalview.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- 1.7.10.2