United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8008089 : Delete OS dependent check in JdkFinder.getExecutable()

Details
Type:
Bug
Submit Date:
2013-02-13
Status:
Closed
Updated Date:
2014-01-15
Project Name:
JDK
Resolved Date:
2013-02-20
Component:
core-svc
OS:
Sub-Component:
tools
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
Fixed Versions:

Related Reports
Backport:
Backport:

Sub Tasks

Description
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.
                                    

Comments
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/ca43e2761a1d
User:  lana
Date:  2013-03-15 17:04:08 +0000

                                     
2013-03-15
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/ca43e2761a1d
User:  sla
Date:  2013-02-20 11:40:53 +0000

                                     
2013-02-20



Hardware and Software, Engineered to Work Together