Hi,
I am new to Vaadin and I just tried to get access to a hsql database.
But it doesn’t work…
… and I would be very happy if someone could help me!
The type of Exception I get is:
java.lang.ClassNotFoundException: org.hsqldb.jdbc.JDBCDriver
In my init() method I included the example shown in the Book of Vaadin:
try {
JDBCConnectionPool pool = new SimpleJDBCConnectionPool(
“org.hsqldb.jdbc.JDBCDriver”, “jdbc:hsqldb:mem:.”, “SA”, “”);
System.out.println(pool.toString());
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
I imported as follows:
import org.hsqldb.*;
import org.hsqldb.jdbc.JDBCDriver;
The classpath contains a reference to the jar:
… and I ran the runManagerSwing.bat script in the hsqldb bin folder to generate a database.
Is there anything I have forgotten?
Please let me know! I am quite helpless at the moment
Kind regards,
Laura