I had the same problem and solved it like this after going through the source code:<br><br>        Properties props = new Properties();<br>        props.setProperty(&quot;drools.dialect.java.compiler&quot;, &quot;JANINO&quot;);<br>
        KnowledgeBuilderConfiguration config = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(props, null);<br>        KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(config);<br><br>Yours,<br>
Olli<br><br><br><div class="gmail_quote">On Thu, Dec 31, 2009 at 5:57 PM, Martin Smith <span dir="ltr">&lt;<a href="mailto:msmith999999@gmail.com">msmith999999@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi folks,<br>
<br>
I&#39;m doing some very basic evaluation of Drools and can&#39;t get past the<br>
first hurdle - the hello world example. I get this:<br>
<br>
......<br>
Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not<br>
in the classpath<br>
       at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:94)<br>
       at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:55)<br>
       at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:270)<br>
<br>
I&#39;m not using Eclipse, my IDE is netbeans 6.8. I get the same error<br>
running the compiled jar from outside netbeans as well so I don&#39;t<br>
think it&#39;s related to the IDE.<br>
<br>
I modified the example by adding a knowledge builder config and then this:<br>
<br>
kconfig.setProperty(&quot;drools.dialect.java.compiler&quot;, &quot;JANINO&quot;);<br>
<br>
This had no effect. I rewrote the example to use a package builder and<br>
set the compiler property on it to JANINO. Again, it didn&#39;t work. I<br>
also tried passing a -Dproperty with the same thing. Again, no effect.<br>
<br>
I have the janino jar from the download on the classpath along with<br>
the other jars it says are necessary.<br>
<br>
It works if I download and add the eclipse jar to the classpath but I<br>
don&#39;t want to do this as I don&#39;t want my runtime app to depend on<br>
pieces of eclipse.<br>
<br>
I&#39;m out of time and ideas now so asking for help here. These are the<br>
drools related jars I have in the project:<br>
<br>
antlr-runtime-3.1.1.jar<br>
drools-api-5.0.1.jar<br>
drools-compiler-5.0.1.jar<br>
drools-core-5.0.1.jar<br>
joda-time-1.6.jar<br>
mvel2-2.0.10.jar<br>
janino-2.5.15.jar<br>
xstream-1.3.1.jar<br>
<br>
Thanks,<br>
<br>
Martin<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>
</blockquote></div><br>