How to get System Information using Java Program

Get System Information using Java

In this tutorial, I am sharing the simple Java program, about How to Get System Information using Java. The example Java program were tested with environment and output is shared in the same post.

SystemInformation.java

The below SystemInformation.java used to get System Information using predefined API`s sucha as java.lang.System.getProperties(). You can find the output below of the program.

Output

—————–
System Information
——————————————–
java.runtime.name – Java(TM) SE Runtime Environment
sun.boot.library.path – C:\Program Files (x86)\Java\jre7\bin
java.vm.version – 24.65-b04
java.vm.vendor – Oracle Corporation
java.vendor.url – http://java.oracle.com/
path.separator – ;
java.vm.name – Java HotSpot(TM) Client VM
file.encoding.pkg – sun.io
user.country – US
user.script –
sun.java.launcher – SUN_STANDARD
sun.os.patch.level –
java.vm.specification.name – Java Virtual Machine Specification
user.dir – C:\Backup\D\Nuwapay_serivce_workspace\server_code\Sorting
java.runtime.version – 1.7.0_65-b19
java.awt.graphicsenv – sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs – C:\Program Files (x86)\Java\jre7\lib\endorsed
os.arch – x86
java.io.tmpdir – C:\Users\dineshk\AppData\Local\Temp\
line.separator –

java.vm.specification.vendor – Oracle Corporation
user.variant –
os.name – Windows 8.1
sun.jnu.encoding – Cp1252
java.library.path – C:\Program Files (x86)\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;C:\Oracle\product\11.2.0\client_1\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
java.specification.name – Java Platform API Specification
java.class.version – 51.0
sun.management.compiler – HotSpot Client Compiler
os.version – 6.3
user.home – C:\Users\dineshk
user.timezone –
java.awt.printerjob – sun.awt.windows.WPrinterJob
file.encoding – Cp1252
java.specification.version – 1.7
user.name – dineshk
java.vm.specification.version – 1.7
sun.java.command – com.dineshkrish.util.SystemInformation
java.home – C:\Program Files (x86)\Java\jre7
sun.arch.data.model – 32
user.language – en
java.specification.vendor – Oracle Corporation
awt.toolkit – sun.awt.windows.WToolkit
java.vm.info – mixed mode, sharing
java.version – 1.7.0_65
java.ext.dirs – C:\Program Files (x86)\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path – C:\Program Files (x86)\Java\jre7\lib\resources.jar;C:\Program Files (x86)\Java\jre7\lib\rt.jar;C:\Program Files (x86)\Java\jre7\lib\sunrsasign.jar;C:\Program Files (x86)\Java\jre7\lib\jsse.jar;C:\Program Files (x86)\Java\jre7\lib\jce.jar;C:\Program Files (x86)\Java\jre7\lib\charsets.jar;C:\Program Files (x86)\Java\jre7\lib\jfr.jar;C:\Program Files (x86)\Java\jre7\classes
java.vendor – Oracle Corporation
file.separator – \
java.vendor.url.bug – http://bugreport.sun.com/bugreport/
sun.io.unicode.encoding – UnicodeLittle
sun.cpu.endian – little
sun.desktop – windows
sun.cpu.isalist – pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86