#Properties ClASS #Mon Aug 02 14:44:12 CST 2021 java.runtime.name=Java(TM) SE Runtime Environment sun.boot.library.path=C\:\\Java\\jdk1.8.0_201x64\\jre\\bin java.vm.version=25.201-b09 java.vm.vendor=Oracle Corporation java.vendor.url=http\://java.oracle.com/ path.separator=; java.vm.name=Java HotSpot(TM) 64-Bit Server VM file.encoding.pkg=sun.io user.country=CN user.script= sun.java.launcher=SUN_STANDARD sun.os.patch.level= java.vm.specification.name=Java Virtual Machine Specification user.dir=C\:\\workspace\\workspace2018\\eparking java.runtime.version=1.8.0_201-b09 java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment java.endorsed.dirs=C\:\\Java\\jdk1.8.0_201x64\\jre\\lib\\endorsed os.arch=amd64 java.io.tmpdir=C\:\\Users\\86159\\AppData\\Local\\Temp\\ line.separator=\r\n java.vm.specification.vendor=Oracle Corporation user.variant= os.name=Windows 10 sun.jnu.encoding=GBK java.library.path=C\:\\Java\\jdk1.8.0_201x64\\bin;C\:\\WINDOWS\\Sun\\Java\\bin;C\:\\WINDOWS\\system32;C\:\\WINDOWS;C\:/Java/jdk1.8.0_201x64/bin/../jre/bin/server;C\:/Java/jdk1.8.0_201x64/bin/../jre/bin;C\:/Java/jdk1.8.0_201x64/bin/../jre/lib/amd64;C\:\\WINDOWS\\system32;C\:\\WINDOWS;C\:\\WINDOWS\\System32\\Wbem;C\:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C\:\\WINDOWS\\System32\\OpenSSH\\;C\:\\Users\\86159\\AppData\\Local\\Programs\\Python\\Python37\\Lib\\site-packages\\openvino\\inference_engine;C\:\\Intel\\openvino_2021.3.394\\deployment_tools\\inference_engine\\bin\\intel64\\Release;C\:\\Intel\\openvino_2021.3.394\\deployment_tools\\inference_engine\\bin\\intel64\\Debug;D\:\\Program Files\\TortoiseSVN\\bin;C\:\\Users\\86159\\AppData\\Local\\Programs\\Python\\Python37\\Scripts\\;C\:\\Users\\86159\\AppData\\Local\\Programs\\Python\\Python37\\;C\:\\Users\\86159\\AppData\\Local\\Microsoft\\WindowsApps;C\:\\Java\\jdk1.8.0_201x64\\bin;D\:\\Program Files\\john-1.9.0-jumbo-1-win64\\run;C\:\\eclipse\\eclipse18\\eclipse;;. java.specification.name=Java Platform API Specification java.class.version=52.0 sun.management.compiler=HotSpot 64-Bit Tiered Compilers os.version=10.0 user.home=C\:\\Users\\86159 user.timezone=Asia/Shanghai java.awt.printerjob=sun.awt.windows.WPrinterJob file.encoding=UTF-8 java.specification.version=1.8 java.class.path=C\:\\workspace\\workspace2018\\eparking\\bin;C\:\\workspace\\workspace2018\\eparking\\lib\\commons-logging-1.1.1.jar;C\:\\workspace\\workspace2018\\eparking\\lib\\jna.jar;C\:\\workspace\\workspace2018\\eparking\\lib\\examples.jar;C\:\\workspace\\workspace2018\\eparking\\lib\\fastjson-1.2.47.jar;C\:\\workspace\\workspace2018\\eparking\\lib\\httpclient-4.5.6.jar;C\:\\workspace\\workspace2018\\eparking\\lib\\httpcore-4.4.10.jar;C\:\\workspace\\workspace2018\\eparking\\lib\\spring-boot-2.1.1.RELEASE.jar;C\:\\workspace\\workspace2018\\eparking\\lib\\spring-context-5.1.3.RELEASE.jar user.name=86159 java.vm.specification.version=1.8 sun.java.command=com.eparking.Test java.home=C\:\\Java\\jdk1.8.0_201x64\\jre sun.arch.data.model=64 user.language=zh java.specification.vendor=Oracle Corporation awt.toolkit=sun.awt.windows.WToolkit java.vm.info=mixed mode java.version=1.8.0_201 java.ext.dirs=C\:\\Java\\jdk1.8.0_201x64\\jre\\lib\\ext;C\:\\WINDOWS\\Sun\\Java\\lib\\ext sun.boot.class.path=C\:\\Java\\jdk1.8.0_201x64\\jre\\lib\\resources.jar;C\:\\Java\\jdk1.8.0_201x64\\jre\\lib\\rt.jar;C\:\\Java\\jdk1.8.0_201x64\\jre\\lib\\sunrsasign.jar;C\:\\Java\\jdk1.8.0_201x64\\jre\\lib\\jsse.jar;C\:\\Java\\jdk1.8.0_201x64\\jre\\lib\\jce.jar;C\:\\Java\\jdk1.8.0_201x64\\jre\\lib\\charsets.jar;C\:\\Java\\jdk1.8.0_201x64\\jre\\lib\\jfr.jar;C\:\\Java\\jdk1.8.0_201x64\\jre\\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=amd64
public void getSystemKey(){ File sysFile = new File("d:/study","sysFile.properties"); Properties sysPro = System.getProperties(); try { sysPro.store(new FileOutputStream(sysFile), "Properties ClASS"); } catch (FileNotFoundException e1) { e1.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }