我使用Eclipse调试一个程序,当我使用右键的Debug As->java Application后,Debug结果给出:
Thread [main] (Suspended (Access restriction: The type JFrame is not accessible due to restriction on required library C:\Program Files\Java\jre7\lib\rt.jar))
Solar.main(String[]) line: 661
我是第一次使用Eclipse,我不知道哪里错了,请指教。
Thread [main] (Suspended (Access restriction: The type JFrame is not accessible due to restriction on required library C:\Program Files\Java\jre7\lib\rt.jar))
Solar.main(String[]) line: 661
我是第一次使用Eclipse,我不知道哪里错了,请指教。
代码
最好,把你的程序给过来,这样更加容易看得出错误原因;
它的所有代码在 http://gearss.blog.com/2012/03/17/solar-java/
我找来找去也找不出哪里出问题了,但是在命令行模式下可以通过编译和正常运行,但是使用Eclipse调试,却给出了错误,无法运行。