IdentifyFile should not be static
[jalview.git] / src / jalview / bin / Jalview.java
index 0272751..a734054 100755 (executable)
@@ -163,7 +163,7 @@ public class Jalview
             if (file.endsWith(".jar"))\r
               format = "Jalview";\r
             else\r
-              format = jalview.io.IdentifyFile.Identify(file, protocol);\r
+              format = new jalview.io.IdentifyFile().Identify(file, protocol);\r
 \r
             System.out.println("Opening: " + format + " file " + file);\r
 \r
@@ -238,7 +238,7 @@ public class Jalview
             }\r
             else\r
             {\r
-              format = jalview.io.IdentifyFile.Identify(file, protocol);\r
+              format = new jalview.io.IdentifyFile().Identify(file, protocol);\r
               desktop.LoadFile(file, protocol, format);\r
             }\r
           }\r