OK, I got this workinkg now, by adding the jar file <span style="font-weight: bold;">core-3.2.3.v_686_R32x.jar</span> from the distribution to my project.<br><br>Now though when I run it, I get the following error:<br><br>
The method getQueryResults(String) is undefined for the type KnowledgeHelper<br><br>has getQueryResults been removd in 4.x or renamed?<br><br><div><span class="gmail_quote">On 7/3/07, <b class="gmail_sendername">Ronald R. DiFrango
</b> <<a href="mailto:ron.difrango@gmail.com">ron.difrango@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
All,<br><br>I am in the process of migrating my 3.0. project to the 4.x series and when I attempt to run my code I get the following exception when I attempt to load my .drl files:<br><br>Caused by: org.drools.RuntimeDroolsException
: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialect:java'<br><br>Here is my package builder code:<br><br>static<br> {<br> try<br> {<br> builder = new PackageBuilder();
<br> builder.addPackageFromDrl( new InputStreamReader( RtvDecisionEngine.class.getResourceAsStream("rtv.drl" ) ) );<br> builder.addPackageFromDrl( new InputStreamReader( RtvDecisionEngine.class.getResourceAsStream
("modelDiscrepancyRules.drl" ) ) );<br> ruleBase = RuleBaseFactory.newRuleBase();<br> ruleBase.addPackage( builder.getPackage() );<br> }<br> catch(Exception e)<br> {<br>
throw new RuntimeException("Failure loading the Rules", e);<br> }<br> }<br><br><br>Any thoughts appreciated.<br><br>Ron<br>
</blockquote></div><br>