SystemProp.java

System Properties 를 출력하는 Class

public class SystemProp {
    public static void main (String [] args) {
        System.out.println("java.home: " + System.getProperty("java.home"));
        System.out.println("java.class.path: " + "java.home" + System.getProperty("java.class.path"));
        System.out.println("java.specification.version: " + System.getProperty("java.specification.version"));
        System.out.println("java.specification.vendor: " + System.getProperty("java.specification.vendor"));
        System.out.println("java.specification.name: " + System.getProperty("java.specification.name"));
        System.out.println("java.version: " + System.getProperty("java.version"));
        System.out.println("java.vendor: " + System.getProperty("java.vendor"));
        System.out.println("java.vendor.url: " + System.getProperty("java.vendor.url"));
        System.out.println("java.vm.specification.version: " + System.getProperty("java.vm.specification.version"));
        System.out.println("java.vm.specification.vendor: " + System.getProperty("java.vm.specification.vendor"));
        System.out.println("java.vm.specification.name: " + System.getProperty("java.vm.specification.name"));
        System.out.println("java.vm.version: " + System.getProperty("java.vm.version"));
        System.out.println("java.vm.vendor: " + System.getProperty("java.vm.vendor"));
        System.out.println("java.vm.name: " + System.getProperty("java.vm.name"));
        System.out.println("java.class.version: " + System.getProperty("java.class.version"));
        System.out.println("os.home: " + System.getProperty("os.name"));
        System.out.println("os.arch: " + System.getProperty("os.arch"));
        System.out.println("os.version: " + System.getProperty("os.version"));
        System.out.println("file.separator: " + System.getProperty("file.separator"));
        System.out.println("path.separator: " + System.getProperty("path.separator"));
        System.out.println("line.separator: " + System.getProperty("line.separator"));
        System.out.println("user.name: " + System.getProperty("user.name"));
        System.out.println("user.home: " + System.getProperty("user.home"));
        System.out.println("user.dir: " + System.getProperty("user.dir"));
    }
}

'programming > java' 카테고리의 다른 글

XOM 시작하기(Creating XML Documents)  (0) 2008.09.18
XOM 소개  (0) 2008.09.18
자바에서 AES 암호화 알고리즘 사용하기  (0) 2008.09.18
Java로 MD5 구현 하기  (0) 2008.09.18
Java SE 6 새로운 기능  (0) 2007.11.09