Hi. You need to use javac's -classpath or -cp option to inlcude some .jar files in the classpath. These jars must contain all classes your code references. I don't exactly know which .jars you need to include, but there is a big chance that you only need jasperreports-1.2.x.jar. Open an editor and make a .bat / .sh script that will call javac with -classpath /some/path/jasperreports-1.2.x.jar:/some/path/someOther.jar... (making a script is good in case you need to change and recompile your code later.. you know that already.)