Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

??xdoclet NoClassDefFoundError Predicate

 
Author
Posts: 133
10
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get the following error when I try to run the XDoclet sample file:
BUILD FAILED
file:C:/classes/xdoclet/samples/build.xml:103: Could not create task of type: ej
bdoclet due to java.lang.NoClassDefFoundError: org/apache/commons/collections/Pr
edicate
What's confusing me is, I'm using the build.xml file provided along with the examples and (to the best of my knowledge) the jar file commons-collections-2.0.jar which contains this Predicate class is in this task's classpath.
Any ideas on how I can diagnose the problem?
Thanks.
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the same problem as you did. After fiddling about with my CLASSPATH I got it to generate the java files but not compile them. After an hour I got fed up... Then I boldly did "unset CLASSPATH" to get a completely empty class path, did "ant clean" followed closely by "ant".... and the *�%"*�& thing worked!
 
Barry Burd
Author
Posts: 133
10
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow! That worked for me too. Now why should unsetting the classpath have made a difference?
 
grapes are vegan food pellets. Eat this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic