从
http://java.sun.com/developer/technicalArticles/J2SE/security/#3:
Note: These two system properties are
ignored when applications run on
operating systems that do not yet
support this feature,for example,MS
Windows.
那个文件是从2006年开始的,所以事情可能已经改变了,但是我没有找到一个确定的答案.
解决方法
不
47 static { 48 USE_NATIVE = 49 AccessController.doPrivileged(new PrivilegedAction<Boolean>() { 50 public Boolean run() { 51 String osname = System.getProperty("os.name"); 52 if (osname.startsWith("SunOS") || 53 osname.startsWith("Linux")) { 54 return new Boolean(System.getProperty 55 (USE_NATIVE_PROP)); 56 } 57 return Boolean.FALSE; 58 } 59 }); 60