在第二章 通讯录系统中,导入书中的Contact.mr.jar后,在import时,出现红叉,提示type cannot be resolved。导入beautyeye也发生相同的情况。都是按照书中操作的。
Exception in thread "main" java.lang.NoClassDefFoundError: org/jb2011/lnf/beautyeye/BeautyEyeLNFHelper
at demo01.Start.main(Start.java:18)
Caused by: java.lang.ClassNotFoundException: org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 1 more
aaronxue 发表于2020-01-11 15:55
Exception in thread "main" java.lang.NoClassDefFoundError: org/jb2011/lnf/beautyeye/BeautyEyeLNFHelper
at demo01.Start.main(Start.java:18)
Caused by: java.lang.ClassNotFoundException: org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 1 more
新建工程,没有建要求删的东西,可以正常import,但运行时出现问题