Skip to content

Instantly share code, notes, and snippets.

@srigalamilitan
Created February 13, 2016 14:40
Show Gist options
  • Save srigalamilitan/578d73aea875d7c7f97e to your computer and use it in GitHub Desktop.
Save srigalamilitan/578d73aea875d7c7f97e to your computer and use it in GitHub Desktop.
Implentation SystemUtils Apache Commons-lang3 www.putracode.com
"C:\Program Files\Java\jdk1.8.0_51\bin\java" -Didea.launcher.port=7534 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.4\bin" -Dfile.encoding=windows-1252 -classpath "C:\Program Files\Java\jdk1.8.0_51\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\zipfs.jar;E:\_GITHUB\PC-COMMONS-LANG3\target\classes;C:\Users\KrisnaPutra\.m2\repository\org\apache\commons\commons-lang3\3.4\commons-lang3-3.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.4\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain com.putracode.common.Learn_SystemUtils
*********************************************
Learn Using SystemUtils Apache Commons-lang3
*********************************************
****Static Variable*****
Get A OS Name : Windows 8.1
Get Java Runtime Name : Java(TM) SE Runtime Environment
Get Java Runtime Version : 1.8.0_51-b16
Get Java Class Path : C:\Program Files\Java\jdk1.8.0_51\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_51\jre\lib\ext\zipfs.jar;E:\_GITHUB\PC-COMMONS-LANG3\target\classes;C:\Users\KrisnaPutra\.m2\repository\org\apache\commons\commons-lang3\3.4\commons-lang3-3.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.4\lib\idea_rt.jar
Get Java Class Version : 52.0
Get Java Compiler : null
Get Java Endosed Dirs : C:\Program Files\Java\jdk1.8.0_51\jre\lib\endorsed
Get Java Home : C:\Program Files\Java\jdk1.8.0_51\jre
Get Java IO Temp Directory : C:\Users\KRISNA~1\AppData\Local\Temp\
Get Java Library Path C:\Program Files\Java\jdk1.8.0_51\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;E:\_SERVER\_MAVEN\apache-maven-3.3.3\bin;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;E:\_SERVER\CURL;C:\paping_1.5.5_x86_windows;C:\Program Files\Java\jdk1.8.0_51\bin;E:\_IDE\Console2\;C:\Program Files\nodejs\;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;E:\_SERVER\GRADE_26\gradle-2.6\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\OpenVPN\bin;C:\Program Files (x86)\Skype\Phone\;%TESSDATA_PREFIX%;C:\android-ndk-r10e;C:\Program Files (x86)\QuickTime\QTSystem\;C:\mongodb\bin;C:\Program Files (x86)\Tesseract-OCR;C:\Users\KrisnaPutra\AppData\Roaming\npm;.
Get Java Specification Name : Java Platform API Specification
Get Java Specification Vendor : Oracle Corporation
Get Java Util Prefs Preferences Factory : null
Get Java Vendor : Oracle Corporation
Get Java Version : 1.8.0_51
Get Java VM Info : mixed mode
Get Java VM Name : Java HotSpot(TM) 64-Bit Server VM
Get Java VM Spesification Name : Java Virtual Machine Specification
Get Java VM Specification Vendor : Oracle Corporation
Get Java VM Specification Version : 1.8
Get Java VM Vendor : Oracle Corporation
Get Java VM Version : 25.51-b03
Line Separator :
OS architecture : amd64
OS Name Windows 8.1
OS Version 6.3
Path Sperator ;
USER_COUNTRY : US
User Directory : E:\_GITHUB\PC-COMMONS-LANG3
User Home : C:\Users\KrisnaPutra
User Language : en
User Name : KrisnaPutra
User TimeZone : Asia/Singapore
****Method in Systems Utils*****
File.getJavaHome : C:\Program Files\Java\jdk1.8.0_51\jre
File.getJavaIoTmpDir : C:\Users\KRISNA~1\AppData\Local\Temp
File.getUserDir : E:\_GITHUB\PC-COMMONS-LANG3
File.getUserHome : C:\Users\KrisnaPutra
boolean.isJavaAwtHeader : false
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment