<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Chong Minsk Goh wrote:
<blockquote
cite="mid:dca8d1d10710150035s5df5c2e8mf5209f507064874d@mail.gmail.com"
type="cite">
<div>Hi,</div>
<div> </div>
<div>I am trying to run Drools on Netbeans. I have added the jars
from Drools 4.0.2.</div>
<div> </div>
<div>However, I encountered an error</div>
<div> </div>
<div>org.doxa.rules.RulesManager - org.drools.RuntimeDroolsException:
Unable to load dialect
'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel'</div>
</blockquote>
MVEL is a required jar, not an optional one, put it on your classpath
and hopefully this should work for you.<br>
<blockquote
cite="mid:dca8d1d10710150035s5df5c2e8mf5209f507064874d@mail.gmail.com"
type="cite">
<div> </div>
<div>I did not use any MVEL dialects in my rules definition. Here is
my rule:</div>
<div><b><font color="#960000" size="2">
<p align="left">rule</p>
</font></b><font size="2"> </font><font color="#008000" size="2">"Out
of Range"</font><font size="2">
</font><b><font color="#960000" size="2">when</font></b><font size="2">
</font><font size="2">m : Message( message == </font><font
color="#008000" size="2">"checkRange"</font><font size="2"> , status
== 1 )
<p align="left">Range(myMin : myMin, myMax : myMax, myValue : myValue)</p>
<p align="left">Range(myValue < myMin || myValue > myMax)</p>
</font><b><font color="#960000" size="2">then</font></b><font size="2">
</font><font size="2">m.setMessage(</font><font color="#008000"
size="2">""</font><font size="2">);
<p align="left">m.setStatus(0);</p>
</font><b><font color="#960000" size="2">end</font></b></div>
<div> </div>
<div>Has anyone attempted using Netbeans with Drools and faced this
problem?</div>
<div> </div>
<div>Best regards</div>
<div>Eric</div>
<div> </div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>