JAL-2074 disable security manager at start up re: http://lopica.sourceforge.net/faq...
authorJim Procter <jprocter@issues.jalview.org>
Mon, 25 Apr 2016 20:35:20 +0000 (21:35 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 25 Apr 2016 20:35:20 +0000 (21:35 +0100)
src/jalview/bin/Jalview.java

index 8fe3bca..229c6c2 100755 (executable)
@@ -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)