报错:
The type JFrame is not accessible due to restriction on required library
代码:
import javax.swing.*;
public class SimpleGuil {
public static void main(String[] args) {
// TODO Auto-generated method stub
JFrame jf=new JFrame();
}
}
问题描述:
红色字体处报错
我的解决办法:
myeclipse——>project——>properties——>左侧java build path,右侧Libraries——>删除默认的JRE system library——>最右侧Add Library——>第二个选项JRE system library——>选择第三个Workplace default JRE——>点击finishing即可