/**
* Main class for Jalview Application <br>
* <br>
- * start with java -classpath "$PATH_TO_LIB$/*:$PATH_TO_CLASSES$"
+ * start with: java -classpath "$PATH_TO_LIB$/*:$PATH_TO_CLASSES$" \
* jalview.bin.Jalview
*
+ * or on Windows: java -classpath "$PATH_TO_LIB$/*;$PATH_TO_CLASSES$" \
+ * jalview.bin.Jalview jalview.bin.Jalview
+ *
+ * (ensure -classpath arg is quoted to avoid shell expansion of '*' and do not
+ * embellish '*' to e.g. '*.jar')
+ *
* @author $author$
* @version $Revision$
*/
af.setProgressBar(MessageManager
.getString("status.das_features_being_retrived"), id);
af.featureSettings_actionPerformed(null);
- af.featureSettings.fetchDasFeatures(dasSources, true);
af.setProgressBar(null, id);
synchronized (us)
{
*/
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);
}