NOClassDefFound error while running a simple java program
This code is compile fine, but whenever I try to run, it gives an error says NoClassDefFound. What is the possible reason and solution, please explain. package myPack; public class PasswordVerification { public boolean verify(String usrId, String pass) { if(usrId.equals("pranjut")&&pass.equals("password")) { return true; }else { return false; } } public static void main(String [] main) { PasswordVerification vp=new PasswordVerification(); System.out.println(vp.verify("pranjut","password")); } } Steve B. Are you sure you're calling with the correct package name prefix (i.e "java myPack