Originally Posted by Fou-Lu
You can actually just give it a string as well.
For the OP, change your directory to the path to execute. When you issue path/class it expects that as the package of the class itself from the -cp directives set. This has no package, so you want to simply use
java HelloWorld from the C:\MyLocation directory.
Sorry, I'm not quite sure what you mean. Could you possibly give an example? Thanks.