java.library.path中没有ocijdbc9 [英] no ocijdbc9 in java.library.path

查看:717
本文介绍了java.library.path中没有ocijdbc9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行Java应用程序时,收到以下错误:

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


线程中的异常main java.lang.UnsatisfiedLinkError:java.library.path中没有ocijdbc9

我没有我的电脑上有一个文件 ocijdbc9。* ,但我在%ORACLE_HOME中有 ocijdbc10.dll %\ bin

I don't have a file ocijdbc9.* on my PC, but I have ocijdbc10.dll in %ORACLE_HOME%\bin.

%ORACLE_HOME%已正确指定,所以我认为问题是应用程序正在搜索错误的版本(9而不是10)。

%ORACLE_HOME% is correctly specified, so I think the problem is that the application is searching for the wrong version (9 instead of 10).

Oracle和Java Builder都是新安装的,所以问题可能出在项目中喜好?您对如何搜索指定了错误版本的地方有任何想法吗?

Both Oracle and Java Builder are freshly installed, so the problem may be in project preferences? Do you have any ideas on how to search for the place where the wrong version is specified?

推荐答案

您遗失了一个文件来自你的java CLASSPATH。

You're missing a file from your java CLASSPATH.

你需要将OCI jar添加到类路径中。

You need to add the OCI jar to your classpath.

对于我的oracle 10.0 .2安装在Windows上它位于

For my oracle 10.0.2 install on windows it's located in

%ORACLE_HOME%\jdbc\lib\ojdbc14.jar

如果您的应用程序需要ocijdbc9,那么您必须从某处下载它并将其添加到CLASSPATH。我不知道从哪里下载,试试oracle网站

If your application requires ocijdbc9 then you'll have to download it from somewhere and add it to the CLASSPATH. I don't know where to download it from, try the oracle site

这篇关于java.library.path中没有ocijdbc9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆