JAVA怎样得到当前程序的路径呢?有两种方法 1 System.out.println(System.getProperty("user.dir")); 2 File f = new File(""); String path = f.getAbsolutePath();