티스토리 뷰

컴퓨터/프로그래밍/Java

자바환경 출력

Rough Existence 2008. 11. 13. 17:43

import java.util.Enumeration;

public class showProp {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Enumeration e = System.getProperties().propertyNames();
        while (e.hasMoreElements())
        {
            String obj = (String)e.nextElement();
            System.out.print(obj+ "=="+System.getProperty(obj)+"\n");
        }
    }

}