eclipse 无法从资源加载定义

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15619583/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 20:15:29  来源:igfitidea点击:

Could not load definitions from resources

javaeclipseantrapidminer

提问by Jay Carr

I have a (hopefully) very basic question. I'm very unfamiliar with Ant, I'm just trying to use a build file so I can write some plugins for an open source application I found recently, Rapid Miner. I've been trying to compile it with Eclipse (following Eclipses.org's own instructions on how to do so.) Every time I click Run though I get an error that looks like this:

我有一个(希望如此)非常基本的问题。我对 Ant 非常不熟悉,我只是想使用一个构建文件,这样我就可以为我最近发现的一个开源应用程序 Rapid Miner 编写一些插件。我一直在尝试用 Eclipse 编译它(按照 Eclipses.org 自己的说明进行操作。)每次我点击运行时,我都会收到一个如下所示的错误:

Buildfile: C:\Users\jcarr14\Eclipse\Workspace\RapidMiner_Unuk\build.xml
  [taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.

BUILD FAILED
C:\Users\jcarr14\Eclipse\Workspace\RapidMiner_Unuk\build.xml:329: taskdef class   com.oracle.appbundler.AppBundlerTask cannot be found
using the classloader AntClassLoader[]

Total time: 306 milliseconds

It seems to me that there must be a file missing, but I can't figure out where it is supposed to be and as a result, I can't figure out if it is actually there or not, or even if Eclipse is the culprit. I did go into the Eclipse folder and look for a net/sf/antcontrib/antlib.xml, but was unable to locate anything.

在我看来,一定有一个文件丢失了,但我无法弄清楚它应该在哪里,因此,我无法确定它是否真的存在,或者即使 Eclipse 是罪魁祸首。我确实进入了 Eclipse 文件夹并查找了 net/sf/antcontrib/antlib.xml,但找不到任何内容。

I'm assuming that it's possible the problem is not with Eclipse at all, but with Rapid Miner. So I looked for that same location inside of the RapidMiner project structure and was unable to find it. I have also posted a similar question to this one on RapidMiner's forums, just in case this is RapidMiner specific.

我假设问题可能根本不在于 Eclipse,而在于 Rapid Miner。所以我在 RapidMiner 项目结构中寻找相同的位置,但找不到。我还在 RapidMiner 的论坛上发布了一个与此类似的问题,以防万一这是特定于 RapidMiner 的。

I suppose the basic question I need answered is how to check if Ant is installed properly in Eclipse. Once I know that Eclipse is working fine I can then throw all my focus on figuring out what is wrong with RapidMiner...

我想我需要回答的基本问题是如何检查 Ant 是否在 Eclipse 中正确安装。一旦我知道 Eclipse 工作正常,我就可以将所有注意力集中在找出 RapidMiner 出了什么问题上……

回答by Jean Waghetti

It seems you need to install ant-contrib.

看来您需要安装ant-contrib