0 Replies Latest reply on Mar 21, 2007 6:34 AM by Marc-Philippe Huget

    Loading all the hierarchical context on a toClass invocation

    Marc-Philippe Huget Newbie

      Hello everybody,

      I use javassist to create on the fly classes, for instance, I create a class Entity, and then a class Agent extending Entity. No problem to create them but when I try to do a toClass to create a new instance of Agent, an exception occurs because the class Entity is undefined (NoClassDefFoundError exception) whereas the class Entity is in the ClassPool.

      Do you know how to fix this problem? Thanks in advance