You are correct, you need to make sure that the environment variable CLASSPATH contains all the pathnames of the Jar's which you are importing classes from. If not, you could put them on the compile-time classpath using: javac -classpath c:\java\MyJar.jar MyClass.java Be warned: This will overwrite the known classpath that javac will get from the system. You might consider using Jakarta's Ant to build your project. You may also want to reduce all your catch blocks down to one: catch (Exception e) { e.printStackTrace(); } This will catch every exception you expect to get and output the result of the error to the standard error stream (visible in the normal command line output stream). You can always check for specific exception by adding other catch clauses before the block above. (There are many views on how to catch errors, but if you are currently learning, rather than developing a large application, you might want to make it easier on yourself, for the time being). Good luck. Ps: This should probably be in the Java In General forum.
Matthew Webster - eudoxus@freeuk.com<br /><a href="http://www.matthewwebster.homeunix.net/" target="_blank" rel="nofollow">http://www.matthewwebster.homeunix.net/</a>