JavaCC - how to run within the IDE?

Hi,

I'm trying to run JavaCC from within the IDE but it always gives me this error:

java.lang.NoClassDefFoundError: COM/sun/labs/javacc/Main

When I run it from the command line it's fine - I just have to set the classpath to point at my javacc.jar. So I've mounted javacc.jar in the IDE, but no joy :-(

I'm not very familiar with Ant so it could be something to do with that. This is my build.xml file:

<?xml version="1.0" encoding="UTF-8"?>

<project basedir="." default="Test" name="Test">

<target name="Test">

<javacc buildparser="true" buildtokenmanager="true" forcelacheck="true" ignorecase="true" javacchome="c:\javacc-3.0" lookahead="2" sanitycheck="true" target="Test.jj"/>

</target>

</project>

Can anyone help?

Thanks,

Ciaran

[872 byte] By [CiaranKeating] at [2007-11-25 9:59:16]
# 1
What version and build number of the IDE are you running?
706285 at 2007-7-1 20:01:47 > top of Java-index,Development Tools,Java Tools...