nice article,and helpful to me,I think,and thank you.But I meet some problems when I try to run a simple program:
I used following statements to register a driver:
String driver="org.exist.xmldb.DatabaseImpl";
Class cl = Class.forName(driver);
Database database = (Database)cl.newInstance();
DatabaseManager.registerDatabase(database);
But it reports errors:
java.lang.NoClassDefFoundError
at org.exist.xmldb.DatabaseImpl.
why so?what mistake did I make?Could you give me a favour?Thank you very much! |