I am trying to run my Java program from the command prompt.
When I do the main method inside my class it works just fine when I use the following command :
path\out\production> java -cp .;"../../../lib/*" Class Package.ClassName
But when I try to run the class test with the same command but changing out to test like this:
path\out\test> java -cp .;"../../../lib/*" Class Package.Class Name
It gives me an error.
I don't really know what I am missing.
Copyright Notice:Content Author:「jasmin」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/39477071/trying-to-run-test-java-from-cmd