java - system 정보 가져오기
출처 : http://blog.naver.com/galoa1123?Redirect=Log&logNo=120118276565
자바로 시스템 정보 가져오기|작성자 스누피
자바로 시스템 정보 가져오기|작성자 스누피
import java.util.Enumeration;
import java.util.Properties;
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
Properties pro = System.getProperties ( ); //시스템 정보를 몽땅 갖고 온다.
Enumeration e = pro.propertyNames();
while(e.hasMoreElements()) {
String obj = ( String )e.nextElement();
System.out.println(obj + ":"+ System.getProperty(obj ));
}
}
}
===================================================================================
java.runtime.name:Java(TM) SE Runtime Environment
sun.boot.library.path:C:\usr\local\jdk1.6.0_20\jre\bin
java.vm.version:16.3-b01
java.vm.vendor:Sun Microsystems Inc.
java.vendor.url:http://java.sun.com/
path.separator:;
java.vm.name:Java HotSpot(TM) Client VM
file.encoding.pkg:sun.io
user.country:KR
sun.java.launcher:SUN_STANDARD
sun.os.patch.level:Service Pack 3
java.vm.specification.name:Java Virtual Machine Specification
user.dir:F:\data\home\Test
java.runtime.version:1.6.0_20-b02
java.awt.graphicsenv:sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs:C:\usr\local\jdk1.6.0_20\jre\lib\endorsed
os.arch:x86
java.io.tmpdir:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
line.separator:
java.vm.specification.vendor:Sun Microsystems Inc.
user.variant:
os.name:Windows XP
sun.jnu.encoding:MS949
java.library.path:C:\usr\local\jdk1.6.0_20\jre\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\TmaxSoft\WebtoB4.1\bin;C:\TmaxSoft\WebtoB4.1\lib;C:\TmaxSoft\WebtoB4.1\jeus\bin;C:\TmaxSoft\WebtoB4.1\jeus\lib\system;c:\oracle\product\10.2.0\db_1\bin;C:\TmaxSoft\JEUS5.0\bin;C:\TmaxSoft\JEUS5.0\lib\system;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Acronis\SnapAPI\;C:\usr\local\jdk1.6.0_20\bin;C:\Program Files\TortoiseSVN\bin;C:\usr\local\MySQL\bin;C:\jennifer\server\bin\tomcat.bat;C:\TmaxSoft\JEUS5.0\bin;C:\TmaxSoft\JEUS5.0\lib\system;C:\TmaxSoft\JEUS5.0\webserver\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Acronis\SnapAPI\;C:\usr\local\jdk1.6.0_20\bin;C:\Program Files\SSH Communications Security\SSH Secure Shell;C:\Program Files\IDM Computer Solutions\UltraEdit\;C:\Program Files\IDM Computer Solutions\UltraCompare\;C:\jennifer\server\bin\tomcat.bat;
java.specification.name:Java Platform API Specification
java.class.version:50.0
sun.management.compiler:HotSpot Client Compiler
os.version:5.1
user.home:C:\Documents and Settings\Administrator
user.timezone:
java.awt.printerjob:sun.awt.windows.WPrinterJob
file.encoding:MS949
java.specification.version:1.6
user.name:Administrator
java.class.path:
java.vm.specification.version:1.0
sun.arch.data.model:32
java.home:C:\usr\local\jdk1.6.0_20\jre
java.specification.vendor:Sun Microsystems Inc.
user.language:ko
awt.toolkit:sun.awt.windows.WToolkit
java.vm.info:mixed mode
java.version:1.6.0_20
java.ext.dirs:C:\usr\local\jdk1.6.0_20\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
sun.boot.class.path:C:\Program Files\MyEclipse 6.5M1\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.4.100.zmyeclipse64100200805\data\libraryset\EE_5\javaee.jar;C:\Program Files\MyEclipse 6.5M1\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.4.100.zmyeclipse64100200805\data\libraryset\EE_5\jsf-impl.jar;C:\Program Files\MyEclipse 6.5M1\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.4.100.zmyeclipse64100200805\data\libraryset\EE_5\jsf-api.jar;C:\Program Files\MyEclipse 6.5M1\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.4.100.zmyeclipse64100200805\data\libraryset\EE_5\jstl-1.2.jar;C:\usr\local\jdk1.6.0_20\jre\lib\resources.jar;C:\usr\local\jdk1.6.0_20\jre\lib\rt.jar;C:\usr\local\jdk1.6.0_20\jre\lib\sunrsasign.jar;C:\usr\local\jdk1.6.0_20\jre\lib\jsse.jar;C:\usr\local\jdk1.6.0_20\jre\lib\jce.jar;C:\usr\local\jdk1.6.0_20\jre\lib\charsets.jar;C:\usr\local\jdk1.6.0_20\jre\classes
java.vendor:Sun Microsystems Inc.
file.separator:\
java.vendor.url.bug:http://java.sun.com/cgi-bin/bugreport.cgi
sun.cpu.endian:little
sun.io.unicode.encoding:UnicodeLittle
sun.desktop:windows
sun.cpu.isalist:pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
'scrap > Java/JSP' 카테고리의 다른 글
[JAVA] File과 Directory 접근 (0) | 2011.07.07 |
---|---|
Window Focus and State in Java (0) | 2011.07.06 |
JAVA - 자바로 프로세스 관리 (0) | 2011.07.04 |
urlconnection 기능확장으로 편리하게 사용하기 (0) | 2011.06.27 |
파싱?.? (0) | 2011.06.27 |