Class ExecutableFinder


  • public class ExecutableFinder
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String find​(java.lang.String named)
      Find the executable by scanning the file system and the PATH.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExecutableFinder

        public ExecutableFinder()
    • Method Detail

      • find

        public java.lang.String find​(java.lang.String named)
        Find the executable by scanning the file system and the PATH. In the case of Windows this method allows common executable endings (".com", ".bat" and ".exe") to be omitted.
        Parameters:
        named - The name of the executable to find
        Returns:
        The absolute path to the executable, or null if no match is made.