private static File getJavaExecutable ( ) { final String javaHome = System . getProperty ( "java.home" ) ; final String slash = File . separator ; return new File ( javaHome + slash + "bin" + slash + "java" ) ; }
Figure out the full path to the current java executable .