无法导入 Apache Commons Jars [英] Can't import Apache Commons Jars

查看:28
本文介绍了无法导入 Apache Commons Jars的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 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.

要添加 jar,这是我的过程,我右键单击>属性>Java 构建路径>库>添加 jar

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

推荐答案

您可能缺少一个 jar,请尝试按照您之前所做的将这个 jar 添加到类路径中:

You are maybe missing a jar, try adding this jar to the classpath by doing just what you did before:

右键单击>属性>Java构建路径>库>添加jar

right-click>Properties>Java Build Path>Libraries>Add Jars

下载这个 JAR:http://central.maven.org/maven2/commons-io/commons-io/2.4/commons-io-2.4.jar

这篇关于无法导入 Apache Commons Jars的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆