Add the library to the classpath. Do an internet search with the keywords java and classpath and you will find a load of resources for how to do this command line.