That error is thrown by the Java virtual machine when it can't find the specified
class. The JVM searches the value of a classpath variable which is a list of
directories and .jar files. Those directories tell the JVM where it can find classes.
You can specify this classpath variable on the command line. Assuming that
your current working directory is where the .class files are stored you can simply
do this:
-
java -classpath . YourClassFile
The dot '.' denotes the current working directory.
kind regards,
Jos