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:
Assuming you have a class called Main you have to run it with this command:
java bin\Main
It will call your main method.