I\'m trying to run .class file from command line. It works when I manually move to the directory it\'s stored in, but when I try something like this:
java C:
Assuming that Main.class does not have a package declaration:
Main.class
java -cp C:\Peter\Michael\Lazarus\ Main
Java looks for classes in a "classpath", which can be set on the command line via the -cp option.
-cp