I have created an example where I import model from a jar file (containing classes LoanApplication, Applicant, IncomeSource, ...) but get a NPE when I try to create a object from FactType. That means that packages has not be loaded correctly. Any idea is welcome 

https://gist.github.com/cmoulliard/0d9564843966a6385946




On Thu, May 2, 2013 at 4:33 PM, Charles Moulliard <ch007m@gmail.com> wrote:
Hi,

Is there a way to add a JAR to a knowledgeBuilder with a method like that ?

kbuilder.add(ResourceFactory.newUrlResource("file:///model-1.0-SNAPSHOT.jar"),ResourceType.JAR);

Regard,

--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com




--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com