国产真实乱子伦精品,国产精品100页,美女网站色免费,国产白嫩美女免费观看,欧美精品亚洲,欧美韩国xxx,欧美性猛交xxxxxxxx软件

Java系統(tǒng)屬性

時(shí)間:2023-04-29 15:46:24 全科知識(shí) 我要投稿
  • 相關(guān)推薦

Java系統(tǒng)屬性

系統(tǒng)屬性是指與用戶(hù)程序相關(guān)的操作系統(tǒng)配置信息以及軟件信息。通常與用戶(hù)程序相關(guān)的屬性關(guān)鍵字包括:

  ●file.separator:文件分隔符,Windows環(huán)境下為“",Unix環(huán)境下為“/”;

  ●user.home:用戶(hù)主目錄;

  ●java.home:Java實(shí)時(shí)運(yùn)行環(huán)境的安裝目錄;

  ●java.ext.dirs:JDK的安裝目錄;

  ●os.name:操作系統(tǒng)名稱(chēng);

  ●user.name:用戶(hù)登錄名稱(chēng);

  ●os.version:操作系統(tǒng)版本;

  ●path.separator:當(dāng)前操作系統(tǒng)的路徑分隔符;

  ●user.dir:當(dāng)前用戶(hù)程序所在目錄。

如果想要查看所有的系統(tǒng)屬性,可以編寫(xiě)如下代碼sysEnv.java

import java.util.Iterator;

import java.util.Properties;

public class sysEnv {

public static void main(String args[])

{

Properties props=System.getProperties();

Iterator iter=props.keySet().iterator();

while(iter.hasNext())

{

String key=(String)iter.next();

System.out.println(key+" = "+ props.get(key));

}

}

}

運(yùn)行此java代碼,就可以看到所有的系統(tǒng)屬性和對(duì)應(yīng)的值了。

例如,我本機(jī)運(yùn)行后的結(jié)果:

java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition

sun.boot.library.path = C:\j2sdk1.4.2_09\jre\bin

java.vm.version = 1.4.2_09-b05

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 = CN

sun.os.patch.level = Service Pack 2

java.vm.specification.name = Java Virtual Machine Specification

user.dir = E:\eclipse\testDemo

java.runtime.version = 1.4.2_09-b05

java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment

java.endorsed.dirs = C:\j2sdk1.4.2_09\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.java2d.fontpath =

java.library.path = C:\j2sdk1.4.2_09\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\j2sdk1.4.2_09\bin;d:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\MySQL\MySQL Server 4.1\bin;d:\Program Files\IDM Computer Solutions\UltraEdit-32

java.specification.name = Java Platform API Specification

java.class.version = 48.0

java.util.prefs.PreferencesFactory = java.util.prefs.WindowsPreferencesFactory

os.version = 5.1

user.home = C:\Documents and Settings\Administrator

user.timezone =

java.awt.printerjob = sun.awt.windows.WPrinterJob

file.encoding = GBK

java.specification.version = 1.4

java.class.path = E:\eclipse\testDemo\bin;E:\eclipse\lucene-1.4.3\lucene-2.0.0\lucene-2.0.0\lucene-core-2.0.0.jar;E:\Library\commons\commons-io-1.1.jar;E:\Library\commons\commons-net-1.1.0.jar;F:\everyday\6月\15\je-analysis-1[1].2.2.jar;E:\Library\junit\junit.jar

user.name = Cral

java.vm.specification.version = 1.0

java.home = C:\j2sdk1.4.2_09\jre

sun.arch.data.model = 32

user.language = zh

java.specification.vendor = Sun Microsystems Inc.

awt.toolkit = sun.awt.windows.WToolkit

java.vm.info = mixed mode

java.version = 1.4.2_09

java.ext.dirs = C:\j2sdk1.4.2_09\jre\lib\ext

sun.boot.class.path = C:\j2sdk1.4.2_09\jre\lib\rt.jar;C:\j2sdk1.4.2_09\jre\lib\i18n.jar;C:\j2sdk1.4.2_09\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_09\jre\lib\jsse.jar;C:\j2sdk1.4.2_09\jre\lib\jce.jar;C:\j2sdk1.4.2_09\jre\lib\charsets.jar;C:\j2sdk1.4.2_09\jre\classes

java.vendor = Sun Microsystems Inc.

file.separator = \

java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi

sun.io.unicode.encoding = UnicodeLittle

sun.cpu.endian = little

sun.cpu.isalist = pentium i486 i386

【Java系統(tǒng)屬性】相關(guān)文章:

基于屬性測(cè)度的決策系統(tǒng)研究05-01

java學(xué)生管理系統(tǒng)心得體會(huì)09-05

基于JAVA技術(shù)的WebGIS平衡施肥專(zhuān)家決策系統(tǒng)04-30

語(yǔ)言與屬性04-26

對(duì)屬性有偏好的多屬性決策方法04-27

《網(wǎng)絡(luò)的屬性》教案04-25

合作的屬性分析04-27

屬性權(quán)重未知的混合型多屬性決策方法04-27

地震復(fù)合屬性-地震屬性提取與解釋新方法04-26

試論謬誤的客觀屬性04-27