import java.io.File; import java.io.IOException; public class MainClass{ public static void main(String[] argv) throws IOException{ File file = new File("."); System.out.println(file.getCanonicalPath()); } }
C:\Java_Dev\sdk\eclipse-java-europa-win32\workspace\test