Here you can find the source of ensureExecutable(IPath path)
public static void ensureExecutable(IPath path)
//package com.java2s; //License from project: Open Source License import java.io.File; import org.eclipse.core.runtime.IPath; public class Main { public static void ensureExecutable(IPath path) { if (pathExists(path)) { File file = path.toFile(); if (!file.canExecute()) { if (!file.setExecutable(true)) { file.setExecutable(true, true); }/*ww w . ja v a 2s . c om*/ } } } public static boolean pathExists(IPath path) { if (path == null || path.isEmpty()) { return false; } File file = path.toFile(); return file.exists(); } }