// C:\huowang\mobile\Javatest\src |
File directory = new File( "src" ); //参数为空 |
String courseFile = directory.getCanonicalPath() ; //C:\huowang\mobile\Javatest\bin |
// System.out.println(directory.getAbsolutePath());//C:\huowang\mobile\Javatest\src 一般使用这个和下面的gepath |
// System.out.println(directory.getPath());//src |
// System.out.println(courseFile); //C:\huowang\mobile\Javatest\src |