Search code examples
droolskienull-pointer

nullpointer in kieservices.factory.get()


I am trying to use drools 7 and kie. I would like to understand which libraries i need to import for every line of code because probably in production we cant use maven.

Now I import only two libraries: kie-api.7.3 and kie-internal.7.3 and I have a nullpointer in the first line of code

KieServices ks = KieServices.Factory.get();

What could be the problem?


Solution

  • But if you can add those .jars, why can't you add all the .jar files that are under the binaries folder inside the .zip that you download from here: https://download.jboss.org/drools/release/7.4.1.Final/droolsjbpm-tools-distribution-7.4.1.Final.zip ?

    I just added them all to my project and it is running well in production