src/main/java/com/simpligility/maven/plugins/android/phase08preparepackage/D8Mojo.java
private static File getJavaExecutable()
    {
        final String javaHome = System.getProperty( "java.home" );
        final String slash = File.separator;
        return new File( javaHome + slash + "bin" + slash + "java" );
    }
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.

@return the full path to the current java executable.