On 21 October 2011 12:22, DerLonG <span dir="ltr">&lt;<a href="mailto:Longbow98@gmx.de">Longbow98@gmx.de</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
laune wrote:<br>
&gt;<br>
&gt; If you can&#39;t import it with a DRL import, it&#39;s either misspelled or not in<br>
&gt; the classpath.<br>
&gt;<br>
I try to add it with the following code:<br>
<br>
PackageBuilder builder = new PackageBuilder();<br>
Resource rs =<br>
ResourceFactory.newClassPathResource(&quot;de\\test\\xml\\KundenEntscheidung&quot;); </blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

builder.addDsl(rs);<br></blockquote><div><br>If this is a Java class, there is a .java file and, after compilation with Java, a .class File. Neither one is a Domain Specific Language definition file that could be added to the Package Builder.<br>
-W<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
But my programm throws always:<br>
java.io.FileNotFoundException: &#39;de\test\xml\KundenEntscheidung&#39; cannot be<br>
opened because it does not exist<br>
<font color="#888888"><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Problem-in-adding-a-Class-to-PKG-tp3437199p3440469.html" target="_blank">http://drools.46999.n3.nabble.com/Problem-in-adding-a-Class-to-PKG-tp3437199p3440469.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>