oracle.jdbc.driver.OracleDriver ClassNotFoundException

后端 未结 8 709
你的背包
你的背包 2020-11-28 14:49

This is my code for which I am getting error. My classes12.jar has been imported as an external jar.

import java.io.IOException;
import java.io.         


        
8条回答
  •  佛祖请我去吃肉
    2020-11-28 15:09

       Class.forName("oracle.jdbc.driver.OracleDriver");
    

    This line causes ClassNotFoundException, because you haven't placed ojdbc14.jar file in your lib folder of the project. or YOu haven't set the classpath of the required jar

提交回复
热议问题