3 Replies Latest reply on Jul 2, 2015 7:21 AM by Jake Kays

    error executing from command line jbpm-example-1.0.0-SNAPSHOT

    Matteo Maguolo Newbie

      Hi,

      I am tryng to execute from command line the jbpm example 1.0.0,, the standard project (jbpm maven) in Eclipse with user activities.

      I compiled it without errors adding all the required dependencis in the pom.xml, and from eclipse it's working but when I compiled with maven (mvn clean install and mvn package) I have the jar but whe I try to execute it wit java -jar nome.jar it doesnt work, I get this log:

       

       

      z:\temp_wkspace\prova5>java -jar target\jbpm-example-1.0.0-SNAPSHOT.jar

      Exception in thread "main" java.lang.NoClassDefFoundError: org/kie/api/KieServices$Factory

        at com.sample.ProcessMain.main(ProcessMain.java:23)

      Caused by: java.lang.ClassNotFoundException: org.kie.api.KieServices$Factory

        at java.net.URLClassLoader$1.run(Unknown Source)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        ... 1 more

       

      Someone can help me please?

       

      Matteo