Jesper de Jong
posted 7 years ago
The classpath is not somehow compiled into the class file, and linking to dependencies is not done only at compile time. In other words, at runtime (not only at compile time) you must also set the classpath correctly. So you must also use "-cp ..." with the java command when you run your program.