我的eclipse导入swing包有错误。
我在eclipse下导入javax.swing.JFrame;
它提示错误。错误如下:
Access restriction: The type JFrame is not accessible due to restriction on required library C:\Program Files\Java\jre1.7.0\lib\rt.jar
然后我直接用记事本编写,在DOS下却能正常编译运行。
但是在eclipse里面就出现错误。这是什么原因啊??