当然可以自己定义了,在java中可以通过
System.getProperty(propertyName);
来取得这个环境变量

解决方案 »

  1.   

    那也就是通过java -D  或 set xxx=UUUU等都能通过System.getProperty(propertyName);
    来使用啦?
      

  2.   

    对啦,通过运行的时候指定-D加参数,程序中就可以通过System.getProperty(propertyName)来取得了。很多系统都需要指定很多系统属性的。
      

  3.   

    Classpath and path environment variable is the most important variable.