以下代码出现了报错
import sun.plugin2.message.GetAppletMessage;
显示报错为
The import sun.plugin2 cannot be resolved
我查了一下这个是jdk里面的,不需要再考虑引入其他包。不知道你用的哪个版本的jdk,我是1.8的
没有相关的jar 或者依赖
在你爆红的import处ART+ENTER
右击项目—Properties—Java Buile Path —选中Libraries—选择Add Library—选中JRE System Library —Next—Finish—OK
返回工程则不再报错了