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

System.out.println(System.getProperty("user.dir"));//当前工作空间
        
System.out.println(Platform.getInstanceLocation().getURL().getPath());//当前运行空间

 

posted @ 2019-10-11 14:58  SoyWang  阅读(460)  评论(0编辑  收藏  举报