connect DB2 with Java

后端 未结 9 1638
梦谈多话
梦谈多话 2021-02-02 16:28

I need to connect DB2 with Java. Kindly help me to connect DB2 with java in ECLIPSE. It would be of great help if you could guide me step by s

9条回答
  •  失恋的感觉
    2021-02-02 16:49

    You need to correct the package name.

    Class.forName("com.ibm.db2.jdbc.app.DB2Driver");
    

    To add .jar in your project => Project + Properties + Java Build Path + Select "Libraries" tab + Add External Jars...

提交回复
热议问题