关于sun.security.action.GetPropertyAction的问题

发布日期:2010-08-30最近更新:2010-08-30来源:零点教学网
public static final String LINE_SEPERATOR = (String)java.security.AccessController.doPrivileged(new sun.security.action.GetPropertyAction("line.separator"));

为什么上边这句话在我的eclipse里边报下边的错误,该如何解决呢?!

Multiple markers at this line
- Access restriction: The type GetPropertyAction is not accessible due to restriction on
required library C:\Program Files\Java\jre6\lib\rt.jar
- Access restriction: The constructor GetPropertyAction(String) is not accessible due to
restriction on required library C:\Program Files\Java\jre6\lib\rt.jar
重新挂接类库引用,问题解决

应该是环境的问题

相关文章:
本周推荐阅读
24小时点击排行