how to resolve Got minus one from a read call in oracle 11g jdbc 7/14 jdk 1.7?

前端 未结 4 1628
旧巷少年郎
旧巷少年郎 2021-01-20 08:44

I am using netbeans and jdk 7 updt 9 with 1.7 and following is my code.

public class jd {
    public static void main(String[] args) throws ClassNotFoundExcep         


        
4条回答
  •  青春惊慌失措
    2021-01-20 09:12

    oracle.jdbc.driver.OracleDriver is deprecated. You will probably have better success by replacing it with oracle.jdbc.OracleDriver

    See: http://www.oracle.com/technetwork/database/enterprise-edition/111070-readme-083278.html and Difference between Oracle jdbc driver classes?

提交回复
热议问题