No suitable driver found for “jdbc:oracle:thin:@**** ”oracle/jdbc/driver/OracleDriver";

前端 未结 3 1968
灰色年华
灰色年华 2021-01-19 02:47

here is my java code

public static Map propertyFileReader() {
    Map map=new HashMap();
           


        
3条回答
  •  借酒劲吻你
    2021-01-19 03:26

    You are using wrong package to refer OracleDriver class
    Change

    oracle.jdbc.driver.OracleDriver  
    

    To

    oracle.jdbc.OracleDriver  
    

    From oracle docs class definition

    public class OracleDriver
                  extends oracle.jdbc.driver.OracleDriver
    

    The Oracle JDBC driver class that implements the java.sql.Driver interface.

提交回复
热议问题