已安装 JDBC,但尝试连接到 Oracle 时出错 [英] JDBC installed, but getting error trying to connect to Oracle

查看:36
本文介绍了已安装 JDBC,但尝试连接到 Oracle 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

扩展库附带的示例程序运行良好,但是当我尝试连接到 Oracle 时出现以下错误:

The sample program that comes with the Extension Library works just fine, but when I try to connect to Oracle I get the following error:

读取关系数据时出错加载连接 ojdbc14 时出错加载 JDBC 驱动程序类 oracle.jdbc.Driver.OracleDriver 时出错.如果运行服务器,请检查 WEB-INF/lib 目录中是否有相应的包.如果运行工作室,请检查您的客户端库中是否提供了相应的包.java.sql.SQLException:无法创建 JDBC 驱动程序 oracle.jdbc.Driver.OracleDriver无法创建 JDBC 驱动程序 oracle.jdbc.Driver.OracleDriverjava.lang.ClassNotFoundException:在 NSF 中找不到类 oracle.jdbc.Driver.OracleDriver在 NSF 中找不到类 oracle.jdbc.Driver.OracleDriveroracle.jdbc.Driver.OracleDriver

Error while reading the relational data Error while loading connection ojdbc14 Error loading JDBC driver class oracle.jdbc.Driver.OracleDriver. If running the server, check that the corresponding package is available in the WEB-INF/lib directory. If running the studio, check that the corresponding package is available in your client library. java.sql.SQLException: Cannot create JDBC driver oracle.jdbc.Driver.OracleDriver Cannot create JDBC driver oracle.jdbc.Driver.OracleDriver java.lang.ClassNotFoundException: Cannot find class oracle.jdbc.Driver.OracleDriver in NSF Cannot find class oracle.jdbc.Driver.OracleDriver in NSF oracle.jdbc.Driver.OracleDriver

貌似找不到jar文件,但是jar文件在以下文件夹中:

It looks like it can't find the jar file, but the jar file is in the following folder:

Lotus/Domino/notedev/domino/workspace/applications/eclipse/plugins

Lotus/Domino/notedev/domino/workspace/applications/eclipse/plugins

我相信这是正确的路径.

I believe this is the correct path.

会不会是供股问题?

推荐答案

代码可能不会自动选取该目录中的 jar 文件.

The code may not automatically pick up jar files in that directory.

我对 xpages 一无所知,但该站点显示了一个 notes/domino 应用程序的清单文件,其中指定了应用程序的类路径.

I don't know anything about xpages, but this site shows a manifest file for a notes/domino application, where they specify a class path for the application.

https://www.ibm.com/developerworks/lotus/library/notes-plugin-eclipse/#N100AC

这篇关于已安装 JDBC,但尝试连接到 Oracle 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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