"자바 System.getProperty()"의 두 판 사이의 차이

3번째 줄: 3번째 줄:


{| class='wikitable'
{| class='wikitable'
! 키 !! 설명
! 키 !! 설명 !! 값 예시
|-
|-
| [[System.getProperty("file.separator")]] || 파일경로 구분문자 ( 리눅스는 "/", 윈도우는 "\" )
| [[System.getProperty("file.separator")]] || 파일경로 구분문자 ( 리눅스는 "/", 윈도우는 "\" ) || \
|-
|-
| [[System.getProperty("java.class.path")]] || 클래스 디렉토리나 JAR 아카이브를 찾을 때 사용하는 경로
| [[System.getProperty("java.class.path")]] || 클래스 디렉토리나 JAR 아카이브를 찾을 때 사용하는 경로 || D:\workspace\demo\target\classes;C:\Users\jmnote\.m2\repository\...
|-
|-
| [[System.getProperty("java.home")]] || JRE 설치 디렉토리
| [[System.getProperty("java.home")]] || JRE 설치 디렉토리 || C:\Program Files (x86)\Java\jre1.8.0_111
|-
|-
| [[System.getProperty("java.vendor")]] || JRE 벤더명
| [[System.getProperty("java.vendor")]] || JRE 벤더명 || Oracle Corporation
|-
|-
| [[System.getProperty("java.vendor.url")]] || JRE 벤더 URL
| [[System.getProperty("java.vendor.url")]] || JRE 벤더 URL || http://java.oracle.com/
|-
|-
| [[System.getProperty("java.version")]] || JRE 버전 번호
| [[System.getProperty("java.version")]] || JRE 버전 번호 || 1.8.0_111
|-
|-
| [[System.getProperty("line.separator")]] || 운영체제가 사용하는 행 구분문자
| [[System.getProperty("line.separator")]] || 운영체제가 사용하는 행 구분문자 ||
|-
|-
| [[System.getProperty("os.arch")]] || 운영체제 아키텍처
| [[System.getProperty("os.arch")]] || 운영체제 아키텍처 || x86
|-
|-
| [[System.getProperty("os.name")]] || 운영체제 이름
| [[System.getProperty("os.name")]] || 운영체제 이름 || Windows Server 2012
|-
|-
| [[System.getProperty("os.version")]] || 운영체제 버전
| [[System.getProperty("os.version")]] || 운영체제 버전 || 6.2
|-
|-
| [[System.getProperty("path.separator")]] || java.class.path에서 사용하는 경로 구분문자
| [[System.getProperty("path.separator")]] || java.class.path에서 사용하는 경로 구분문자 || ;
|-
|-
| [[System.getProperty("user.dir")]] || 사용자 작업 디렉토리
| [[System.getProperty("user.dir")]] || 사용자 작업 디렉토리 || D:\workspace\demo
|-
|-
| [[System.getProperty("user.home")]] || 사용자 홈 디렉토리
| [[System.getProperty("user.home")]] || 사용자 홈 디렉토리 || C:\Users\jmnote
|}
|}



2017년 4월 18일 (화) 10:48 판

1 개요

자바 System.getProperty()
설명 값 예시
System.getProperty("file.separator") 파일경로 구분문자 ( 리눅스는 "/", 윈도우는 "\" ) \
System.getProperty("java.class.path") 클래스 디렉토리나 JAR 아카이브를 찾을 때 사용하는 경로 D:\workspace\demo\target\classes;C:\Users\jmnote\.m2\repository\...
System.getProperty("java.home") JRE 설치 디렉토리 C:\Program Files (x86)\Java\jre1.8.0_111
System.getProperty("java.vendor") JRE 벤더명 Oracle Corporation
System.getProperty("java.vendor.url") JRE 벤더 URL http://java.oracle.com/
System.getProperty("java.version") JRE 버전 번호 1.8.0_111
System.getProperty("line.separator") 운영체제가 사용하는 행 구분문자
System.getProperty("os.arch") 운영체제 아키텍처 x86
System.getProperty("os.name") 운영체제 이름 Windows Server 2012
System.getProperty("os.version") 운영체제 버전 6.2
System.getProperty("path.separator") java.class.path에서 사용하는 경로 구분문자 ;
System.getProperty("user.dir") 사용자 작업 디렉토리 D:\workspace\demo
System.getProperty("user.home") 사용자 홈 디렉토리 C:\Users\jmnote

2 같이 보기

3 참고 자료