java ClassNotFoundException for org.h2.Driver

前端 未结 13 2372
被撕碎了的回忆
被撕碎了的回忆 2021-01-01 10:40

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

相关标签:
13条回答
  • 2021-01-01 11:27

    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.

    String url = "jdbc:h2:mem:~/test";
    
    0 讨论(0)
提交回复
热议问题