How to fix ecxeption java.lang.NoClassDefFoundError when creating connector

I am currently learning how to write a connector in Bonta Studio (7.11.3 Community version).

I had copied the required jar file in to lib folder, write the connector implement java class, and build with no error.

However, when actually run the process, I got  java.lang.NoClassDefFoundError for multiple classes for the jar file.

Do I need to add the reference somewhere to make it work?

Hi,

I highly recommend following the custom connector creation tutorial from the documentation or the migration tutorial.

It is likely there is a missing dependency in your classpath or a conflict between your dependencies and the Bonita Runtime.

HTH
Romain

Hello
If you are successful, could you publish an Article / blog with step by step instructions on creating connectors .

An easy tutorial would help us to create the same in future.

Thanks & Regards