简体   繁体   English

在JDeveloper 11g中找不到mySQL Driver类

[英]mySQL Driver class not found in JDeveloper 11g

In testing an existing Oracle SOA Composite using Oracle JDeveloper 11g Release 1 (11.1.1.7.0). 使用Oracle JDeveloper 11g第1版(11.1.1.7.0)测试现有的Oracle SOA Composite。 When I try to test one of the connections to the mySQL database I see this error: "Test failed: Driver class not found. Verify the Driver location". 当我尝试测试与mySQL数据库的连接之一时,我看到此错误:“测试失败:找不到驱动程序类。请验证驱动程序位置”。

I have added the mySQL Library in JDeveloper and pointed it to the JAR file as pointed out here: JDeveloper MySQL error Driver not found 我已经在JDeveloper中添加了mySQL库,并将其指向此处指出的JAR文件: JDeveloper MySQL错误驱动程序未找到

I also ran through the steps to outline adding the JAR here: http://jdev11g.blogspot.com/2009/04/oracle-jdeveloper-11g-with-mysql.html 我还执行了在此处概述添加JAR的步骤: http : //jdev11g.blogspot.com/2009/04/oracle-jdeveloper-11g-with-mysql.html

I have tried mapping the library to the JAR as well as moving the JAR under JDeveloper in C:\\Oracle\\Middleware\\jdeveloper\\jdev\\lib and mapping it there. 我尝试将库映射到JAR,并将JAR移到C:\\ Oracle \\ Middleware \\ jdeveloper \\ jdev \\ lib中的JDeveloper下并将其映射。

When I go to the Database Navigator and try to connect I get an Error encountered alert stating "An error was encountered performing the requested operation: Driver class not found. Verify the Driver location Vendor code 0." 当我转到数据库导航器并尝试连接时,遇到“遇到错误”警报,指出“执行请求的操作时遇到错误:找不到驱动程序类。请验证驱动程序位置供应商代码0。”

Thanks, 谢谢,

Tom Henricksen 汤姆·亨里克森

In reading this blog post: http://www.jobinesh.com/2009/06/adf-with-mysql.html 在阅读此博客文章时: http : //www.jobinesh.com/2009/06/adf-with-mysql.html

I realized my mistake was the difference from Project Properties and Default Project Properties. 我意识到我的错误是与项目属性和默认项目属性的区别。 I had added the library to the wrong one. 我将库添加到错误的库中。 They are both under the Application menu in JDeveloper 11G. 它们都在JDeveloper 11G的“应用程序”菜单下。

Thanks, 谢谢,

Tom 汤姆

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM