- 
    Backport 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    7u40
- 
        b14
- 
        Not verified
                    The check below is too OS dependent and should be deleted.
...
binPath += File.separatorChar + "bin" + File.separatorChar + executable;
File toolFile = new File(binPath);
==> if (!toolFile.exists()) {
throw new RuntimeException(binPath + " does not exist");
}
...
On windows if executable is specified as e.g. 'java', without '.exe', the File exists() will fail. But it's still possible to run executable.
...
binPath += File.separatorChar + "bin" + File.separatorChar + executable;
File toolFile = new File(binPath);
==> if (!toolFile.exists()) {
throw new RuntimeException(binPath + " does not exist");
}
...
On windows if executable is specified as e.g. 'java', without '.exe', the File exists() will fail. But it's still possible to run executable.
- backport of
- 
                    JDK-8008089 Delete OS dependent check in JdkFinder.getExecutable() -           
- Closed
 
-