I am working in eclipse plugin application. I need to change existing directory icon in my project explorer. I am new in java. Any solution can be so helpful thanks in advance
File theFile=new File(selectedPath);
Wini ini=new Wini(theFile);
System.out.println("path== "+selectedPath);
String field = "soc.gif" + ",0";
ini.put(".ShellClassInfo", "IconResource", field);
ini.store();
System.out.println("path2== "+selectedPath);
Runtime.getRuntime().exec("attrib -h +s " + theFile.getAbsolutePath());
i am using above code to change directory icon but it show me exception java.io.FileNotFoundException: directory path (Access is denied)