首页 >> 文档 >> Java专题

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

发布日期:2010-06-05最近更新:2010-06-05来源:BHCODE作者:
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
重新挂接类库引用,问题解决

应该是环境的问题

本周推荐
MORE
热点关注
MORE