I am trying to use H2 to connect to a database in Java (using Eclipse as the IDE). The sample does (below) throws a ClassNotFoundException. The thing is, I
ClassNotFoundException
In my case it's actually the connection string issue. I saw this.
After I added the mem in the URL string below, and it worked.
mem
String url = "jdbc:h2:mem:~/test";