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