关闭

java -D 参数

标签: javasunpropertiesservicewindowssystem
862人阅读 评论(1) 收藏 举报

-D    set a system property(设置系统属性)

可通过语句System.getProperties().list(System.out);查看有哪些参数可以设置。

可设置的参数:

-- listing properties --
java.runtime.name=Java(TM) 2 Runtime Environment, Stand...
sun.boot.library.path=C:/Program Files/Java/jre1.5.0_08/bin
java.vm.version=1.5.0_08-b03
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=D:/wapSearchLogService
java.runtime.version=1.5.0_08-b03
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs=C:/Program Files/Java/jre1.5.0_08/lib...
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=GBK
java.library.path =C:/Program Files/Java/jre1.5.0_08/bin...
java.specification.name=Java Platform API Specification
java.class.version=49.0
sun.management.compiler=HotSpot Client Compiler
os.version=5.1
user.home=C:/Documents and Settings/Administrator
user.timezone=Asia/Shanghai
java.awt.printerjob=sun.awt.windows.WPrinterJob
file.encoding=GBK
java.specification.version=1.5
user.name=Administrator
java.class.path =D:/wapSearchLogService/bin;D:/wapSear...
java.vm.specification.version=1.0
sun.arch.data.model=32
java.home=C:/Program Files/Java/jre1.5.0_08
java.specification.vendor=Sun Microsystems Inc.
user.language=zh
awt.toolkit=sun.awt.windows.WToolkit
java.vm.info=mixed mode, sharing
java.version=1.5.0_08
java.ext.dirs =C:/Program Files/Java/jre1.5.0_08/lib...
sun.boot.class.path=C:/Program Files/Java/jre1.5.0_08/lib...
java.vendor=Sun Microsystems Inc.
file.separator=/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport...
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
sun.desktop=windows
sun.cpu.isalist=

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:45619次
    • 积分:659
    • 等级:
    • 排名:千里之外
    • 原创:21篇
    • 转载:7篇
    • 译文:0篇
    • 评论:3条
    文章分类
    最新评论