no ocijdbc9 in java.library.path

后端 未结 4 1311
后悔当初
后悔当初 2020-12-19 21:03

When I try to run Java application, I receive the following error:

Exception in thread \"main\" java.lang.UnsatisfiedLinkError: no ocijdbc9 in j

4条回答
  •  既然无缘
    2020-12-19 21:28

    an additional tip: if you're using oci jdbc urls; it is always better to use the jar library of your oracle client version.

    please check this address for these libraries: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html

    for example if your client is Oracle 10.2.0.4, then you'd better use this client's ojdbc14.jar for java >= 1.4 and classes12.jar for java <= 1.3

    note that until Oracle 11, jdbc libraries have the same names in every version such as ojdbc14.jar and classes12.jar.

提交回复
热议问题