MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / run

Method run

src/org/opensourcephysics/tools/Launcher.java:288–302  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286 // create a test launch thread
287 Runnable launchRunner = new Runnable() {
288 @Override
289 public void run() {
290 // prevent single VM in Vista and Linux
291 if (OSPRuntime.isVista() || OSPRuntime.isLinux()) {
292 return;
293 }
294 try {
295 Process proc = Runtime.getRuntime().exec("java"); //$NON-NLS-1$
296 // if it made it this far, new VM is allowed (?)
297 newVMAllowed = true;
298 proc.destroy();
299 } catch (Exception ex) {
300 /** empty block */
301 }
302 }
303
304 };
305 try {

Callers

nothing calls this directly

Calls 15

isVistaMethod · 0.95
isLinuxMethod · 0.95
findFramesForMethod · 0.95
finerMethod · 0.95
getStringMethod · 0.95
warningMethod · 0.95
infoMethod · 0.95
startMethod · 0.95
invokeMethod · 0.80
toArrayMethod · 0.80
lengthMethod · 0.80
threadRunningMethod · 0.80

Tested by

no test coverage detected