1String FolderName="C:/name";//Write your complete path here
2try {
3 Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + FolderName);
4 } catch (IOException ex) {
5 Logger.getLogger(ClassName.class.getName()).log(Level.SEVERE, null, ex);
6 }