3 Replies Latest reply on Jul 16, 2006 11:30 PM by Ashutosh Maheshwari

    classpath..!!!

    Ashutosh Maheshwari Newbie

      Hi Forum,
      I am using java reflect API to create a instance of a class

      Class classDefinition = Class.forName(className);
      object = classDefinition.newInstance();

      my War File structure
      MyApp.war
      |
      |--/WEB-INF/classes/p/sp/ssp/abc.class
      |--/WEB-INF/classes/p/sp/asp/efg.class

      i am creating a instance of a class efg in class abc.But during runtime i am promted with the exception "java.lang.ClassNotFoundException" while creating instance.

      Any Idea what may be wrong?

      Thanks---