When i am keeping the "MyServletProgram" in "java" package i get ClassNotFoundException java.MyServletProgram but when it is in default package, the program runs fine. Can you suggest where i am going wrong??





When i am keeping the "MyServletProgram" in "java" package i get ClassNotFoundException java.MyServletProgram but when it is in default package, the program runs fine. Can you suggest where i am going wrong??





You can not name a package as
java, since it is prohibitedYou are likely to get an exception :
Change you
packagename to something else and it will work flawlessly .