Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8008553

Delete OS dependent check in JdkFinder.getExecutable()

    Details

    • Subcomponent:
    • Resolved In Build:
      b14
    • Verification:
      Not verified

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ykantser Yekaterina Kantserova (Inactive)
                Reporter:
                ykantser Yekaterina Kantserova (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: