I am trying to open file in external editor from java, but when i run my source code, nothing happens. I am using JRE 1.6 and my opration system is Windows 7. Here is my source code:
Desktop desktop = null;
if (Desktop.isDesktopSupported()) {
desktop = Desktop.getDesktop();
}
desktop.edit(new File("D:\\Document.rtf"));