MCPcopy Index your code
hub / github.com/processing/processing / getJavaPath

Method getJavaPath

app/src/processing/app/Platform.java:353–361  ·  view source on GitHub ↗

Get the path to the embedded Java executable.

()

Source from the content-addressed store, hash-verified

351
352 /** Get the path to the embedded Java executable. */
353 static public String getJavaPath() {
354 String javaPath = "bin/java" + (Platform.isWindows() ? ".exe" : "");
355 File javaFile = new File(getJavaHome(), javaPath);
356 try {
357 return javaFile.getCanonicalPath();
358 } catch (IOException e) {
359 return javaFile.getAbsolutePath();
360 }
361 }
362
363
364 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Callers 2

runMethod · 0.95
launchVirtualMachineMethod · 0.95

Calls 2

isWindowsMethod · 0.95
getJavaHomeMethod · 0.95

Tested by

no test coverage detected