|
|
От: |
dotidot
|
|
| Дата: | 30.07.08 06:48 | ||
| Оценка: | |||
import java.io.File;
import java.net.URL;
public class MyTest {
public static void main(String[] args) {
URL resource = new MyTest().getClass().getResource("/");
System.out.println(resource.getFile());
System.out.println(new File(".").getAbsolutePath());
}
}/xxx/workspace/sometest/bin/
/xxx/workspace/sometest/.