public static File whichExec(String exec) {
Path p = null;
String pathStr = WindowsUtils.getPath();
if (pathStr != null) p = new Path(new Project(), pathStr);
if (p != null) {
String[] dirs = p.list();
for (int i = 0; i < dirs.length; i++) {
File executableFile = new File(dirs[i], exec);
if (executableFile.exists()) {
return executableFile;
}