Regenerate the classes.jsa file so that our locally installed Java can launch

with the same (emacs-like) fastness as a standard Java install.
This commit is contained in:
Michael Bayne
2007-02-01 02:23:47 +00:00
parent a2adc382a3
commit 5aa5de0aa0
@@ -443,6 +443,15 @@ public abstract class Getdown extends Thread
// we should do something like tell the user or something but fucking fuck
}
}
// lastly regenerate the .jsa dump file that helps Java to start up faster
String vmpath = LaunchUtil.getJVMPath(_app.getLocalPath(""));
try {
Log.info("Regenerating classes.jsa for " + vmpath + "...");
Runtime.getRuntime().exec(vmpath + " -Xshare:dump");
} catch (Exception e) {
Log.warning("Failed to regenerate .jsa dum file [error=" + e + "].");
}
}
/**