Could not load definitions from resources

瘦欲@ 提交于 2019-12-10 10:33:02

问题


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:

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.

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.

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...


回答1:


It seems you need to install ant-contrib.



来源:https://stackoverflow.com/questions/15619583/could-not-load-definitions-from-resources

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!