This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error in ant build : failed to create task or type jjtree

 
Sankarsan Padhy
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running an ant build in my linux pc. I installed ant(a pache Ant version 1.7.1 ). it is giving below error. but the same code is running fine in window pc. what can be the error. how to resolve it?


stacktrace:
Problem: failed to create task or type jjtree
Cause: the class org.apache.tools.ant.taskdefs.optional.javacc.JJTree was not found.
This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
-/usr/share/ant/lib
-/root/.ant/lib
-a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.

This is not a bug; it is a configuration problem
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By doing what the error message recommends: add the JAR containing the JJTree class to the lib directory. Apparently you (or someone else) did that on your Windows PC, you need to do the same on Linux.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic