shell - 为什么linux下运行java会出现java.lang.NoClassDefFoundError?
迷茫
迷茫 2017-04-18 10:12:37
0
1
788


如图,我已经在/root/lib目录下放了dom4j的包,而且也在CLASSPATH里面设置了/root/lib,但是运行我的java程序,总是提示找不到dom4j的SAXReader。

求解,谢谢!

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
迷茫

I have encountered this problem before. The classpath is not the directory where the package is added, but the jar package. You need to add root/lib/xxx.jar to the end of the classpath

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template