Try:java -cp app.jar MainClassIf this doesn't work then verify that the JRE/bin path is in your PATHenvironment variable.