Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Self Inflicted Pain With antcontrib

 
Ranch Hand
Posts: 377
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I apparently have screwed myself and I don't know what to do. I had a working ant environment (CentOS) when I attempted to install Java version 7. I removed version 6 using 'yum' and much to my surprise it also removed ant. After installing version 7 from an RPM, ant was not installed. I then tried to install ant with yum and it reinstalled Java version 6. At that point I decided to forget version 7 until it is available via yum. However, I can no longer do my builds as I get this error:

Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.

I have no idea why this happens as the directory pointed to by the build file:

does contain the library:

#ls /var/www/html/Applets/ant-contrib
ant-contrib-1.0b3.jar docs lib

Which was untouched by this fiasco. Can someone point me to some other cause? TIA.
 
author & internet detective
Posts: 39996
807
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The pathelement is supposed to contain the actual jar file name, not a directory. Try this instead:
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know this doesn't solve the immediate issue, but things like this are why I always install Java components manually from their download sites and never use the Linux package manager to install anything Java.
 
Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic