写了一段代码,在自己机器上执行一下就知道有多少了:)
##JDK的文档里有一部分的说明    Properties p=System.getProperties();
    Enumeration tttt=p.propertyNames();
  while(  tttt.hasMoreElements())
    System.out.println(tttt.nextElement().toString());

解决方案 »

  1.   

    给你个结果信息,等号前面的为key
    -- listing properties --
    java.runtime.name=Java(TM) 2 Runtime Environment, Stand...
    sun.boot.library.path=c:\jdk\jre\bin
    java.vm.version=1.3.0_02
    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
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=E:\zhanghua
    java.runtime.version=1.3.0_02
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    os.arch=x86
    java.io.tmpdir=E:\DOCUME~1\ADMINI~1.ZZH\LOCALS~1\Temp\
    line.separator=java.vm.specification.vendor=Sun Microsystems Inc.
    java.awt.fonts=
    os.name=Windows 2000
    java.library.path=c:\jdk\bin;.;E:\WINNT\System32;E:\WIN...
    java.specification.name=Java Platform API Specification
    java.class.version=47.0
    os.version=5.0
    user.home=E:\Documents and Settings\Administrat...
    user.timezone=
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    file.encoding=GBK
    java.specification.version=1.3
    user.name=administrator
    java.class.path=c:\jdk\lib\tools.jar;c:\jdk\lib\class...
    java.vm.specification.version=1.0
    java.home=c:\jdk\jre
    user.language=zh
    java.specification.vendor=Sun Microsystems Inc.
    awt.toolkit=sun.awt.windows.WToolkit
    java.vm.info=mixed mode
    java.version=1.3.0_02
    java.ext.dirs=c:\jdk\jre\lib\ext
    sun.boot.class.path=c:\jdk\jre\lib\rt.jar;c:\jdk\jre\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
    user.region=CN
    sun.cpu.isalist=pentium i486 i386
     
      

  2.   

    嗯,java内部的可以这样,但java.exe的参数呢?我想应该有文档可以查吧……
      

  3.   

    java参数出错时提示的那些参数应该是java.exe的参数吧。
      

  4.   

    楼上的说的是java -?得到的吧,我说的是比如在java -?中:
     -D<name>=<value>有哪些name可以选择?