I need some clarification on the
Java command line statements. Please comment if the following is incorrect or incomplete:
If a .class file doesn't have a package statement, you can just give your command a Classpath to the directory that it's located in. For example, MyClass.class is located at project/source/classes and from root, I write:
Java -cp project/source/classes MyClass
But... if your class has a package statement ("package source.classes;"), you must give a classpath to the super directory (or run it from the super directory) and then use the fully qualified name of the class:
Java -cp project source.classes.MyClass