[rules-users] The Eclipse JDT Core jar is not in the classpath error

Marcus Ilgner marcus.ilgner at gmail.com
Tue Jun 2 05:13:35 EDT 2009


2009/6/2 Chris Richmond <crichmond at referentia.com>:
> Hello,
>
>
>
> I am using netbeans and ivy with Drools 5.  I have successfully named,
> published the jars from drools to and could build my port of the stock
> ticker application in netbeans, but when I try to run it, I get the
> following error:
>
>
>
>
>
> java.lang.NoClassDefFoundError: org/antlr/runtime/tree/TreeNodeStream
>
>
>
> I have the antlr-runtime jar from the bin/lib on my classpath where I added
> all the others, but it always fails at this line
>
> In loadRuleBase() in Broker.java of the stock ticker sample
>
>
>
> builder.add( ResourceFactory.newInputStreamResource(
> Broker.class.getResourceAsStream( RULES_FILE ) ),
>
> ResourceType.DRL);.
>
>
>
>
>
> Does anyone have any ideas what jar I might be missing if it’s not the
> antlr-runtime?
>
>
>
> Thanks,
>
> Chris
>

Hi,

in one of my projects, I actually needed two different versions of
antlr in the classpath. Did you check if the class referenced in the
exception actually exists in the deployed antlr jar file?

Best regards
Marcus




More information about the rules-users mailing list