[rules-users] Problem in adding a Class to PKG

Wolfgang Laun wolfgang.laun at gmail.com
Fri Oct 21 06:26:21 EDT 2011


On 21 October 2011 12:22, DerLonG <Longbow98 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111021/9eb8b670/attachment.html 


More information about the rules-users mailing list