package maptoxml; public class Tfff { public static void main(String[] args) { System.out.println("Java运行时环境版本:"+System.getProperty("java.version")); System.out.println("Java 运行时环境供应商:"+System.getProperty("java.vendor&qu…
获取当前类的所在工程路径; 如果不加"/" File f = new File(this.getClass().getResource("").getPath()); System.out.println(f); 结果:C:\Documents%20and%20Settings\Administrator\workspace\projectName\bin\com\test 获取当前类的绝对路径: 第二种:File directory = new File(&quo…