java ClassNotFoundException for org.h2.Driver

前端 未结 13 2477
被撕碎了的回忆
被撕碎了的回忆 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:22

    Recently I encountered the java.lang.ClassNotFoundException: org.h2.Driver exception in IntelliJ IDEA 2017.2 EAP while using the latest version (1.4.196) of H2 driver. The solution was to downgrade to 1.4.195 that worked.

    
        com.h2database
        h2
        1.4.195
        test
    
    

提交回复
热议问题