내 남자의 길~!
Ishaya
성군.story
(740)
Java
(173)
J2SE
(49)
J2EE
(4)
Spring Boot
(6)
JSP
(8)
JavaFx
(20)
eclipse
(24)
swing
(38)
SWT
(1)
ant
(8)
JMF
(3)
Etc
(10)
Window Programming
(49)
C
(13)
C++
(0)
win32 api
(16)
VB.NET
(3)
Visual studio
(14)
Programming
(7)
Python
(10)
Mobile
(1)
ProJ
(22)
GudaMail
(7)
WinExit
(5)
GudaSong
(1)
GudaFTP
(1)
GudaWinSet
(2)
GudaMoreTran
(3)
PowerBuilder
(13)
lecture
(8)
function()
(1)
Tips
(4)
DBMS
(35)
Sybase
(13)
Oracle
(8)
MSSQL
(2)
DB tool
(6)
SQL
(2)
Lecture
(2)
Web
(44)
HTML
(9)
XML
(12)
Javascript
(23)
Security
(60)
Lecture
(6)
Reverse
(5)
Assembly
(8)
UPX&MUP
(2)
Tip&Tech
(15)
Tool
(18)
Rv_works
(4)
ComputerScience
(16)
Design Patterns
(4)
SE_SQA
(2)
Tool
(9)
OS
(24)
Mac
(2)
Vista
(5)
Solaris
(1)
해킨토시
(2)
Linux
(13)
Windows
(1)
IOT
(1)
내 남자의 길
(119)
성군のstory
(43)
구입도서
(46)
구입예정도서
(8)
재테크
(13)
복싱
(4)
바이크
(5)
DevStory
(51)
Seminar
(36)
Developer story
(12)
CryptoCurrency
(2)
IT mailing
(63)
IBM DeveloperWorks mailing
(32)
microsoft mailing
(6)
sun mailing
(10)
Robocode
(7)
IBM Student Monitoring Agen..
(7)
Favorites site
(8)
Tips
(23)
Utility
(11)
/
/
블로그 내 검색
JAVA 현재 디렉토리 경로 확인
Ishaya seon
2008. 10. 1. 17:15
2008. 10. 1. 17:15
반응형
1. 첫번째 방법
String currentDir = System.getProperty("user.dir");
2. 두번째 방법
File dir1 = new File ("."); File dir2 = new File (".."); try { System.out.println ("Current dir : " + dir1.getCanonicalPath()); System.out.println ("Parent dir : " + dir2.getCanonicalPath()); } catch(Exception e) { e.printStackTrace(); }
공유하기
게시글 관리
내 남자의 길~!
+ Recent posts
Powered by
Tistory
, Designed by
wallel
Rss Feed
and
Twitter
,
Facebook
,
Youtube
,
Google+
티스토리툴바
내 남자의 길~!
구독하기