If you have multiple classes, make sure you pack all the .class files required into the jar file. The alternative is to copy the .class files along with the jar file. There may be other API's that...