<br>   Chris,<br><br>   There must be a problem with the classpath. That message only shows up when the antlr-runtime jar is not in the classpath.<br><br> java.lang.<div class="h5">NoClassDefFoundError: org/antlr/runtime/tree/TreeNodeStream<br>
<br>    Also, I successfully run examples from command line, outside of eclipse, so it is unlikely that you are being hit by some hidden dependency.<br><br>    Sorry for not helping you more, but continue investigating your netbeans project classpath for &quot;odd&quot; things.<br>
<br>    Oh, and BTW, antlr runtimes are not compatible between versions, so, if your netbeans has a different antlr runtime jar in the classpath in a higher priority search order, it will give you similar problems.<br><br>
    []s<br>    Edson<br></div><br><br><div class="gmail_quote">2009/6/2 Chris Richmond <span dir="ltr">&lt;<a href="mailto:crichmond@referentia.com">crichmond@referentia.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Marcus,<br>
<br>
I only have the one version of antlr jar that comes in the /lib folder of<br>
the drools 5.0 binary distribution, however that was enough to allow me to<br>
run the stockticker fusion sample in eclipse no problem.  I ported the<br>
project to Netbeans and am relying on all of the same jars from that binary<br>
distribution, but getting this error now.   Perhaps there is something that<br>
is being provided by the eclipse drools plugin?<br>
<br>
Thanks,<br>
<font color="#888888">Chris<br>
</font><div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>
[mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] On Behalf Of Marcus Ilgner<br>
Sent: Monday, June 01, 2009 11:14 PM<br>
To: Rules Users List<br>
Subject: Re: [rules-users] The Eclipse JDT Core jar is not in the classpath<br>
error<br>
<br>
2009/6/2 Chris Richmond &lt;<a href="mailto:crichmond@referentia.com">crichmond@referentia.com</a>&gt;:<br>
&gt; Hello,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I am using netbeans and ivy with Drools 5.  I have successfully named,<br>
&gt; published the jars from drools to and could build my port of the stock<br>
&gt; ticker application in netbeans, but when I try to run it, I get the<br>
&gt; following error:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; java.lang.NoClassDefFoundError: org/antlr/runtime/tree/TreeNodeStream<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I have the antlr-runtime jar from the bin/lib on my classpath where I<br>
added<br>
&gt; all the others, but it always fails at this line<br>
&gt;<br>
&gt; In loadRuleBase() in Broker.java of the stock ticker sample<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; builder.add( ResourceFactory.newInputStreamResource(<br>
&gt; Broker.class.getResourceAsStream( RULES_FILE ) ),<br>
&gt;<br>
&gt; ResourceType.DRL);.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Does anyone have any ideas what jar I might be missing if it’s not the<br>
&gt; antlr-runtime?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Chris<br>
&gt;<br>
<br>
Hi,<br>
<br>
in one of my projects, I actually needed two different versions of<br>
antlr in the classpath. Did you check if the class referenced in the<br>
exception actually exists in the deployed antlr jar file?<br>
<br>
Best regards<br>
Marcus<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>