반응형
System.getProperty()
System.getProperty() 함수의 인자에 아래 Key를 입력하면 해당하는 문자열을 결과로 얻을 수 있다.
Key | Meaning |
---|---|
"file.separator" | Character that separates components of a file path. This is "/ " on UNIX and "\ " on Windows. |
"java.class.path" | Path used to find directories and JAR archives containing class files. Elements of the class path are separated by a platform-specific character specified in thepath.separator property. |
"java.home" | Installation directory for Java Runtime Environment (JRE) |
"java.vendor" | JRE vendor name |
"java.vendor.url" | JRE vendor URL |
"java.version" | JRE version number |
"line.separator" | Sequence used by operating system to separate lines in text files |
"os.arch" | Operating system architecture |
"os.name" | Operating system name |
"os.version" | Operating system version |
"path.separator" | Path separator character used in java.class.path |
"user.dir" | User working directory |
"user.home" | User home directory |
"user.name" | User account name |
반응형
'프로그래밍 > Java' 카테고리의 다른 글
시간(Time) 관련 함수 및 처리 방법 (0) | 2013.06.29 |
---|---|
형변환 (0) | 2013.05.29 |
변수 타입별 크기 및 범위 (0) | 2013.05.29 |
Java/Google Protocol Buffer 사용법 (0) | 2013.05.28 |
Java/enum 열거형 (0) | 2013.05.23 |