Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- vscode
- grep
- xargs
- VirtualBox
- Windows 10
- web.xml
- context
- JavaScript
- Quartz
- Source
- tomcat
- find
- GIT
- ssh
- maVen
- lsof
- 단축키
- profile
- Eclipse
- 네트워크
- resource
- import
- port
- 줄바꿈 문자
- Windows
- plugin
- bash
- IntelliJ
- netsh
- Mac
Archives
- Today
- Total
develog
현재 클래스 경로 구하기 본문
URL url = TestMain.class.getResource("TestMain.class");
String currDir = url.getPath();
File file = new File(currDir);
System.out.println(url );
System.out.println(currDir);
System.out.println(file.getCanonicalPath());
'Dev > Java' 카테고리의 다른 글
properties (0) | 2013.06.26 |
---|---|
String.valueOf(), String.toString() (0) | 2013.06.25 |
URLConnection vs HTTPClient (0) | 2013.06.19 |
java classpath command line 실행 (0) | 2013.06.12 |
System Properties (0) | 2013.06.12 |
Comments