http://expert.csdn.net/Expert/topic/2699/2699157.xml?temp=.4716455这里说的很清楚了~~

解决方案 »

  1.   

    可以自己设值,设了就可以取,看看API吧
      

  2.   

    cocosunshine(我爱阳光): 搜索到的看不懂才问的。
    bighappy(简单) :怎么设呢,请举例讲讲啊。分不够可以再给的啊,这个东西搞不懂,很是难受呢。
      

  3.   

    System.setProperty("myProperty","abc");
    System.out.println(System.getProperty("myProperty"));
      

  4.   

    给你个例子
    /*
    A basic Java class stub for a Win32 Console Application.
     */import java.util.*;
    public class Systemtest {
        public static void main(String args[]) {
           Properties Systeminfo=System.getProperties();
           Enumeration e=Systeminfo.propertyNames();
           while(e.hasMoreElements())
           {
                String key=(String)e.nextElement();
                System.out.println(key + " value is " + Systeminfo.getProperty(key));
           }
        } //{{DECLARE_CONTROLS
    //}}
    }
      

  5.   

    我不能在代码中设置,我是看别人写好的.class文件的
    没有用到System.setProperty
    wwlzlk(kao) :你的是什么意思,能讲得详细点吗
      

  6.   

    http://expert.csdn.net/Expert/topic/2699/2699157.xml?temp=.4716455
      

  7.   

    String s = SendMsg.class.getName();
    String m = System.getProperty(s);这是实现了什么功能呀?为什么m为null呀?