Get the path to the embedded Java executable.
()
| 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 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
no test coverage detected