I noticed this when I was playing with some code last night. If I try to use the following from the doco<br><br><pre class="programlisting">PackageBuilderConfiguration cfg = new PackageBuilderConfiguration( );<br>JavaDialectConfiguration javaConf = (JavaDialectConfiguration) 
cfg.getDialectConfiguration( &quot;java&quot; );<br>javaConf.setCompiler( JavaDialectConfiguration.JANINO ); <br><br>I get the error you are seeing when trying to instantiate a PackageBuilderConfiguration. <br><br>However if I use the following
<br></pre><br><pre class="programlisting">Properties properties = new Properties();<br>properties.setProperty( &quot;drools.dialect.java.compiler&quot;,<br>                        &quot;JANINO&quot; );<br>PackageBuilderConfiguration cfg = new PackageBuilderConfiguration( properties );
<br>JavaDialectConfiguration javaConf = (JavaDialectConfiguration) cfg.getDialectConfiguration( &quot;java&quot; );<br>assertEquals( JavaDialectConfiguration.JANINO,<br>              javaConf.getCompiler() ); // demonstrate that the compiler is correctly configured
</pre><br>Janino seems to work ok. Looks like the default constructor for a PackageBuilderConfiguration needs to be able to locate the Eclipse JDT classes.<br><br><div><span class="gmail_quote">On 9/5/07, <b class="gmail_sendername">
Garry Brother</b> &lt;<a href="mailto:gmbroth@hotmail.com">gmbroth@hotmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div><div style="text-align: left;">Hi,<br><br>After two (unsuccessful) attempts at downloading and running<br>the drools examples, I&#39;m ready to throw in the towel.&nbsp; Before I<br>do that, however, I&#39;m going to beg for help.
<br><br>With ant, I was able to build the examples using the following<br>classpath:<br><br>&nbsp;&nbsp; &lt;path id=&quot;drools.jars&quot; &gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fileset dir=&quot;${drools.home}&quot; &gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include name=&quot;*.jar&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fileset&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/path&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;target name=&quot;compile&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mkdir dir=&quot;target&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mkdir dir=&quot;target/classes&quot;/&gt;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;copy todir=&quot;target/classes&quot;&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fileset dir=&quot;src/main/resources&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fileset dir=&quot;src/main/rules&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/copy&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;javac srcdir=&quot;src/main/java&quot;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; destdir=&quot;target/classes&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; source=&quot;1.4&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;classpath &gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;path refid=&quot;drools.jars&quot; /&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fileset dir=&quot;lib&quot;&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include name=&quot;*.jar&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fileset&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/classpath&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/javac&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;/target&gt;&nbsp; <br><br>All attempts to run the &quot;run-waltz12&quot; example fail regardless
<br>of what classes I throw at it.&nbsp; I tried both &quot;drools.jars&quot;<br>above and the classpath below, without luck, as well as other<br>combinations of jars:<br><br>&nbsp; &lt;path id=&quot;jsr94.jars&quot; &gt;<br>&nbsp;&nbsp;&nbsp; &lt;fileset dir=&quot;${
drools.home}&quot; &gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include name=&quot;drools-core*.jar&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include name=&quot;drools-compiler*.jar&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include name=&quot;drools-jsr94.jar&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/fileset&gt;
<br>&nbsp;&nbsp;&nbsp; &lt;fileset dir=&quot;${drools.home}/lib&quot; &gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include name=&quot;jsr94-1.1.jar&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include name=&quot;janino-2.5.7.jar&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/fileset&gt;<br>&nbsp; &lt;/path&gt;
<br><br>Latest error is this:<br><br>&nbsp;&nbsp;&nbsp;&nbsp; [java] Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the classpath<br><br>I went out of my way to specify the janino jar so don&#39;t know<br>why an eclipse jar is required (I&#39;m building from the command 
<br>line and not using Eclipse.) <br><br>I&#39;m sure it&#39;s my ignorance but wonder if someone could email me<br>ant script that will do the job?<br><br>Thanks, Garry<br><br><br><br></div><br><hr>Discover the new Windows Vista 
<a href="http://search.msn.com/results.aspx?q=windows+vista&amp;mkt=en-US&amp;form=QBRE" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Learn more!</a></div>
<br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" 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>