问题描述
我试图将apache commons jar扩展添加到我的项目中,我将jar文件复制到了项目根目录中.我也将这些相同的文件放在参考库"文件夹中,当我运行我的应用程序时,出现以下错误消息.
I'm trying to add the apache commons jar extensions to my project I copied my jar files in my project root. I also put these same files in my "Referenced Libraries" folder and when I run my app I'm getting the below error message.
要添加罐子,这是我的过程,我右键单击>属性> Java构建路径>库>添加罐子
To add the jars this is my process I right-click>Properties>Java Build Path>Libraries>Add Jars
我的错误消息引起原因: java.lang.NoClassDefFoundError:org.apache.commons.io.IOUtils
My error message Caused by: java.lang.NoClassDefFoundError: org.apache.commons.io.IOUtils
推荐答案
您可能会缺少一个jar,请尝试按照之前的操作将此jar添加到类路径中:
You are maybe missing a jar, try adding this jar to the classpath by doing just what you did before:
下载此JAR: http://central.maven.org/maven2/commons-io/commons-io/2.4/commons-io-2.4.jar
Download this JAR: http://central.maven.org/maven2/commons-io/commons-io/2.4/commons-io-2.4.jar
这篇关于无法导入Apache Commons Jars的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!