From: Wolfgang M. <wol...@ex...> - 2004-12-02 13:14:30
|
> However, during run time I get the > exception: > > java.lang.ClassNotFoundException: org/exist/xmldb/DatabaseImpl > > Prior to this, I was also getting the run time error: > > java.lang.NoClassDefFoundError: org/xmldb/api/base/XMLDBException To run eXist in embedded mode, you need most of the jars from lib/core + exist.jar to be in the classpath, in particular: xmldb, antlr, xmlrpc, commons-pool, jakarta-oro, commons-resolver, log4j. xmldb.jar contains the XMLDB interfaces, exist.jar the actual driver implementation. > Doesn't the classloader look at the classpath? The compiler finds these > jars fine but I suspect the classloader is looking elsewhere. Being a > somewhat Java newbie does not help here either for me. If the class is loaded dynamically, it may use a different classloader (for example, if loaded via ClassLoader.loadClass). You probably have to check the code that does the loading. Wolfgang |