Java – no class loaded Jdbc driver for forname

Oracle JDBC tutorial says

But when I delete class Forname, it will give the error no driver found I am using the Ojdbc14 driver How to do without class Forname?

Solution

Check the JDBC version carefully The article said that it was introduced in JDBC 4.0 (Java 1.6)

However, Ojdbc14 is a JDBC 3.0 (Java 1.5) driver

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>