<br>   Ok, it is clearly complaining about the &quot;-&quot; in your rule name. The odd thing is that &quot;-&quot; is allowed in rule names, so what is different about your setup? <br><br>* did you enabled to code dump to disk?<br>
* what compiler are you using? JDT or Janino? what version?<br>* what operating system are you using?<br>* what JVM and java compiler are you using?<br><br>   []s<br>   Edson     <br><br><br><br><div class="gmail_quote">2009/8/25 Lindy hagan <span dir="ltr">&lt;<a href="mailto:lindyhagan@gmail.com">lindyhagan@gmail.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;"><div>Getting below error for each and every rule in Vote.drl . Using Drools 5 and eclipse 3.4.  </div>

<div> </div>
<div>Trying this example </div>
<div><a href="http://www.developer.com/java/ent/article.php/10933_3821101_3" target="_blank">http://www.developer.com/java/ent/article.php/10933_3821101_3</a></div>
<div> </div>
<div> </div>
<div>Rule Compilation error : [Rule name=&#39;VeryGoodValue – between 6-9&#39;]<br> com/examples/Rule_VeryGoodValue_–_between_6_9_0.java (3:79) : Syntax error on tokens, delete these tokens<br> com/examples/Rule_VeryGoodValue_–_between_6_9_0.java (3:92) : The public type Rule_VeryGoodValue_ must be defined in its own file<br>

 com/examples/Rule_VeryGoodValue_–_between_6_9_0.java (3:127) : Syntax error, insert &quot;}&quot; to complete Block<br> com/examples/Rule_VeryGoodValue_–_between_6_9_0.java (4:134) : Syntax error on tokens, delete these tokens<br>

 com/examples/Rule_VeryGoodValue_–_between_6_9_0.java (6:202) : Syntax error on token &quot;void&quot;, @ expected<br> com/examples/Rule_VeryGoodValue_–_between_6_9_0.java (6:234) : Syntax error on token &quot;KnowledgeHelper&quot;, ( expected after this token<br>

 com/examples/Rule_VeryGoodValue_–_between_6_9_0.java (6:284) : Syntax error on token &quot;m&quot;, delete this token<br> com/examples/Rule_VeryGoodValue_–_between_6_9_0.java (6:287) : Syntax error on token(s), misplaced construct(s)<br>

 com/examples/Rule_VeryGoodValue_–_between_6_9_0.java (6:309) : Syntax error, insert &quot;)&quot; to complete MethodInvocation<br> com/examples/Rule_VeryGoodValue_–_between_6_9_0.java (6:309) : Syntax error, insert &quot;)&quot; to complete SingleMemberAnnotation<br>

 com/examples/Rule_VeryGoodValue_–_between_6_9_0.java (6:309) : Syntax error, insert &quot;enum Identifier&quot; to complete EnumHeaderName<br> com/examples/Rule_VeryGoodValue_–_between_6_9_0.java (6:309) : Syntax error, insert &quot;EnumBody&quot; to complete EnumDeclaration<br>

</div>
<div> </div>
<div><b>Vote.drl</b></div>
<div> </div>
<div>package com.examples<br> <br>import com.examples.drools.Vote;<br> <br>rule &quot;WrongValue – less than 0&quot;<br>     when<br>          m : Vote( average &lt; 0.0, vote : vote )<br>     then          <br>          m.setAverage(0.0f);<br>

          update( m );               <br>end<br> <br>rule &quot;WrongValue – bigger than 10&quot;<br>     when<br>          m : Vote( average &gt; 10.0, vote : vote )<br>     then          <br>          m.setAverage(10.0f);<br>

          update( m );               <br>end<br> <br>rule &quot;BadValue – between 0-3&quot;<br>     when<br>          m : Vote( average &gt;= 0.0 &amp;&amp; average &lt;=3.0, vote : vote )<br>     then<br>           m.setVote(&quot;Bad!&quot;);<br>

          System.out.println( m.getVote() );<br>end<br> <br>rule &quot;GoodValue – between 3-6&quot;<br>     when<br>          m : Vote( average &gt;3.0 &amp;&amp; average &lt;=6.0, vote : vote )<br>     then<br>           m.setVote(&quot;Good!&quot;);<br>

          System.out.println( m.getVote() );<br>end<br> <br>rule &quot;VeryGoodValue – between 6-9&quot;<br>     when<br>          m : Vote( average &gt;6.0 &amp;&amp; average &lt;=9.0, vote : vote )<br>     then<br>           m.setVote(&quot;Very Good!&quot;);<br>

          System.out.println( m.getVote() );<br>end<br> <br>rule &quot;ExcellentValue – between 9-10&quot;<br>     when<br>          m : Vote( average &gt;9.0 &amp;&amp; average &lt;=10.0, vote : vote )<br>     then<br>           m.setVote(&quot;Excellent!&quot;);<br>

          System.out.println( m.getVote() );<br>end</div>
<div><b><font color="#960000" size="2"><font color="#960000" size="2">
<p></p></font></font></b></div>
<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></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>