Look for the class name .You have saved as MyTest.java .In the code theclass name should match exactly.The other possibility is setting class path.