Results 1 to 11 of 11
Thread: How can I fix this error?
- 02-11-2009, 03:20 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 32
- Rep Power
- 0
How can I fix this error?
When I tried to build the XML file that I have in order to get the HSQLDB interface running I got the following error:
Buildfile: build.xml
BUILD FAILED
/Users/abder-rahmanali/Desktop/Hibernate/build.xml:11: The following error occurred while executing this line:
jar:file:/System/Library/Java/Extensions/maven-ant-tasks-2.0.9.jar!/org/apache/maven/artifact/ant/antlib.xml:4: taskdef A class needed by class org.apache.maven.artifact.ant.DependenciesTask cannot be found: org/apache/tools/ant/Task
Any ideas?
Thanks.
- 02-11-2009, 05:28 PM #2
Sounds like a JAR file is missing from the classpath...
- 02-12-2009, 04:26 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yes, seems to me that external package org.apache.maven.artifact.ant.DependenciesTask is missing.
- 02-12-2009, 04:44 AM #4
Member
- Join Date
- Oct 2008
- Posts
- 32
- Rep Power
- 0
I got it fixed.
I moved the Maven Ant Tasks JAR file to the "lib" directory of Ant. But, the issue was is that my MAC OS X Leopard comes built in with "Ant", and it is where I have to move the JAR file, not to the Ant version that I installed.
Thanks.
- 02-12-2009, 05:03 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
If you are using external jar files, better to locate them in separate folder location, may be within the project folder itself. However in most of the cases, if you are adding them through an IDE, jar files are located in lib folder anyway.
- 02-12-2009, 05:05 AM #6
Member
- Join Date
- Oct 2008
- Posts
- 32
- Rep Power
- 0
I was using the "Terminal" on iMac actually.
- 02-12-2009, 05:24 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
So you are added external jar file through that or manually?
- 02-12-2009, 05:25 AM #8
Member
- Join Date
- Oct 2008
- Posts
- 32
- Rep Power
- 0
Yes, through it. And, I just wrote why I was having the problem. So, it got fixed.
- 02-12-2009, 05:51 AM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yes Abder, I see your question and how you fix it. I just want to clarify that terminal can added jar into the correct location or not. As you said into the lib.
- 02-12-2009, 05:52 AM #10
Member
- Join Date
- Oct 2008
- Posts
- 32
- Rep Power
- 0
Yes, I could add it.
Just used the "mv" command.
- 02-12-2009, 05:56 AM #11
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Ok fine, I'll test it on iMac later.
Similar Threads
-
Diference Between compiler error Garbage collection and Runtime Error?
By makpandian in forum New To JavaReplies: 3Last Post: 01-23-2009, 08:53 AM -
error 530 error authentication required
By rgale in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 05-12-2008, 04:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks