It sounds to me like the class file is not on your classpath. You will need to set your classpath either by setting a system property CLASSPATH or by using the -cp option with java. Either will need to point to the directory containing the compiled class files. This directory would be the root of where you compiled the files if you are using packages.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com