I am accessing MySQL. When I run under Tomcat, the class is getting accessed fine. When I run it from Main under IDEA, I am getting NoClassDefFoundError. Exact same code is being accessed for lclsDBDriver = Class.forName(lstrDBDriver);
why? I am using JDK 1.7 and IDEA 10.5.2