获取Eclipse安装路径
- Eclipse安装目录:
E:\eclipse-rcp-mars-1-win32-x86_64\eclipse
两种方法:
String installPath = System.getProperty("user.dir");
String installPath1 = Platform.getInstallLocation().getURL().getPath();
System.out.println("installPath: " + installPath); // 结果:E:\eclipse-rcp-mars-1-win32-x86_64\eclipse
System.out.println("installPath1: "