Hello Giuseppe -
Are you able to compile the code properly in the IDE ? Does it fail in the server ? It could be because the JAR is not present in the class path of the server.
If it's Jboss app server, you could check this KB - how to include an external JAR files referenced within the MDM User Exit in Jboss