import java.io.PrintWriter;
import java.lang.reflect.Constructor;
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.*;
import javax.swing.*;
*/
public class Jalview
{
-
+ static {
+ // grab all the rights we can the JVM
+ Policy.setPolicy( new Policy() {
+ public PermissionCollection
+ getPermissions(CodeSource codesource) {
+ Permissions perms = new Permissions();
+ perms.add(new AllPermission());
+ return(perms);
+ }
+ public void refresh(){
+ }
+ });
+ }
/**
* main class for Jalview application
*
AlignFrame af = fileLoader.LoadFileWaitTillLoaded(file, protocol,
format);
-
if (af == null)
{
System.out.println("error");