*/
public static void main(String[] args)
{
- instance = new Jalview();
+ float ONE_MB = 1048576f;
+ Runtime runtime = Runtime.getRuntime();
+ float maxMemory = runtime.maxMemory() / ONE_MB;
+ if (maxMemory < 1024 * 15)
+ {
+ System.exit();
+ }
+
+ if (System.ge)
+ {
+ instance = new Jalview();
+ }
instance.doMain(args);
}