Eclipse获取工作空间跟运行空间

System.out.println(System.getProperty("user.dir"));//当前工作空间
        
System.out.println(Platform.getInstanceLocation().getURL().getPath());//当前运行空间
原文地址:https://www.cnblogs.com/Soy-technology/p/11654224.html