I can print the path using System.getenv("PATH"). Then I probably can traverse those paths and use File to check if the file is exist.
System.getenv("PATH")
File
Is there any faster way in Java ?