Run from command line, Wrong Name error
问题 I want to run a Java project from the command line which I start using a batch file, but I get the wrong name error. The directory setup: srcMVC bin (folder with .class files) src (folder with .java files) Batch file Batch file: set path=C:\Program Files\Java\jdk1.7.0_09\bin javac src\model\*.java -d bin -cp src javac src\controller\*.java -d bin -cp src javac src\view\*.java -d bin -cp src javac src\main\*.java -d bin -cp src PAUSE java bin\main.Main PAUSE Compiling works, but I get the