NoClassDefFoundError after importing library

I have made a small program that simulates mouse movements. Everything has worked as supposed to so far till i added the jnativehook library for listening to keyboard input to stop the program.

After this the problems started to occur, when i launch my program from the IDE (im using intelij) everything works. But when i build the program into a jar the jar wont launch giving this error:

error code

i have tried to add the path like this java -classpath .;jnativehook-2.1.0.jar Main (found this methode here but it...

Read More »

By: StackOverFlow - Thursday, 8 November

Related Posts