getPropertypublic static String getProperty(String key)
Gets the system property indicated by the specified key. 
First, if there is a security manager, its checkPropertyAccess method is called with the key as its argument. This may result in a SecurityException. If there is no current set of system properties, a set of system properties is first created and initialized in the same manner as for the getProperties method. 
Parameters:
key - the name of the system property. 
Returns:
the string value of the system property, or null if there is no property with that key. 
Throws: 
SecurityException - if a security manager exists and its checkPropertyAccess method doesn't allow access to the specified system property. 
NullPointerException - if key is null. 
IllegalArgumentException - if key is empty.

解决方案 »

  1.   

    对啊,“iscp932”是什么属性?
      

  2.   

    判断操作系统的字符集是否是日语。楼主是在做日文开发的东西???网页:
    英文,法文,德文,意大利文,西班牙文,日文,繁体中文,简体中文,韩文 
    Code Page:
    English(CP437), West European Languages(CP850), Mac OS(Mac Roman), Traditional Chinese(CP950), Simplified Chinese (CP936), Japanese(CP932), Korean(CP949) 
      

  3.   


    取虚拟机或系统参数
    如 java -Discp932 your_class
    或 java -Discp932==XXX your_class