Maven ojdbc jar dependency error: package oracle.jdbc does not exist

后端 未结 5 1574
孤城傲影
孤城傲影 2021-01-17 16:29

Heading

Am trying to use jdbc connection in my Java EE6 application(class name VisualizerRepository.java), i have the jdbc driver in nexus repository

The c

5条回答
  •  孤城傲影
    2021-01-17 17:17

    I faced a similar scenario where exception was following.

    java: cannot access oracle.jdbc.OracleTypes error
    

    I manually installed ojdbc JAR to my local repository. However the problem was still existing. It was because I installed ojbc10.jar. For some reasons I thought number in this JAR name is like JDBC version. But they are more related with Java version. My project was using Java JDK 8. So issue got resolved after installing ojdbc8.jar.

    So when you download make sure to check the release note. Certified with JDK8, JDK9, JDK11.

提交回复
热议问题