On 21 October 2011 12:22, DerLonG <Longbow98@gmx.de> wrote:

laune wrote:
>
> If you can't import it with a DRL import, it's either misspelled or not in
> the classpath.
>
I try to add it with the following code:

PackageBuilder builder = new PackageBuilder();
Resource rs =
ResourceFactory.newClassPathResource("de\\test\\xml\\KundenEntscheidung"); 
builder.addDsl(rs);

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.
-W

But my programm throws always:
java.io.FileNotFoundException: 'de\test\xml\KundenEntscheidung' cannot be
opened because it does not exist




--
View this message in context: http://drools.46999.n3.nabble.com/Problem-in-adding-a-Class-to-PKG-tp3437199p3440469.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users