You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Rafael Turk <ra...@gmail.com> on 2008/06/07 01:27:22 UTC

Building pig from trunk

Hello folks!


I've been trying to build Pig from trunk, but I've got the following error:

Buildfile: build.xml
BUILD FAILED
/projetos/woovi/pig/trunk/build.xml:135: 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
Total time: 0 seconds

What I´m missing here?

Thanks in advance,
Rafael

Re: Building pig from trunk

Posted by pi song <pi...@gmail.com>.
That means your ANT doesn't have Javacc task included.  If you use apt-get
package manager, just do:-

apt-get install ant-optional


On Sat, Jun 7, 2008 at 9:42 AM, Travis Brady <tr...@mochimedia.com> wrote:

> I had the same issue a few months ago
> http://markmail.org/message/2eil2p4pt2p6pzhd and I never got a straight
> answer.   Things seemed to work when I upgraded Ant.
> Here is mine for reference: Apache Ant version 1.7.0 compiled on August 29
> 2007
>
> This is on Ubuntu.
>
> hope that helps,
> Travis
>
> On Fri, Jun 6, 2008 at 4:27 PM, Rafael Turk <ra...@gmail.com> wrote:
>
> > Hello folks!
> >
> >
> > I've been trying to build Pig from trunk, but I've got the following
> error:
> >
> > Buildfile: build.xml
> > BUILD FAILED
> > /projetos/woovi/pig/trunk/build.xml:135: 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
> > Total time: 0 seconds
> >
> > What I´m missing here?
> >
> > Thanks in advance,
> > Rafael
> >
>
>
>
> --
> Travis Brady
> Mochi Media
> www.mochiads.com
>

Re: Building pig from trunk

Posted by Travis Brady <tr...@mochimedia.com>.
I had the same issue a few months ago
http://markmail.org/message/2eil2p4pt2p6pzhd and I never got a straight
answer.   Things seemed to work when I upgraded Ant.
Here is mine for reference: Apache Ant version 1.7.0 compiled on August 29
2007

This is on Ubuntu.

hope that helps,
Travis

On Fri, Jun 6, 2008 at 4:27 PM, Rafael Turk <ra...@gmail.com> wrote:

> Hello folks!
>
>
> I've been trying to build Pig from trunk, but I've got the following error:
>
> Buildfile: build.xml
> BUILD FAILED
> /projetos/woovi/pig/trunk/build.xml:135: 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
> Total time: 0 seconds
>
> What I´m missing here?
>
> Thanks in advance,
> Rafael
>



-- 
Travis Brady
Mochi Media
www.mochiads.com