当前位置: 技术问答>java相关
求教jbuilder6 jdbc的配置问题
来源: 互联网 发布时间:2015-05-17
本文导语: 我在生成实体bean的wizard中,试图指定驱动程序是oracle.jdbc.driver.OracleDriver. 出现如下错误: The driver: oracle.jdbc.driver.OracleDriver could not be loaded. This could be a problem with the driver itself, or that the driver is not fou...
我在生成实体bean的wizard中,试图指定驱动程序是oracle.jdbc.driver.OracleDriver.
出现如下错误:
The driver: oracle.jdbc.driver.OracleDriver could not be loaded. This could be a problem with the driver itself, or that the driver is not found on the classpath.
(我已经在系统环境变量中加入classpath=%classpath%;C:oracleora81jdbclibclass12.zip
而且class12.zip确实在C:oracleora81jdbclib目录下)
请问能否告知适合原因,应如何正确配置?
出现如下错误:
The driver: oracle.jdbc.driver.OracleDriver could not be loaded. This could be a problem with the driver itself, or that the driver is not found on the classpath.
(我已经在系统环境变量中加入classpath=%classpath%;C:oracleora81jdbclibclass12.zip
而且class12.zip确实在C:oracleora81jdbclib目录下)
请问能否告知适合原因,应如何正确配置?
|
要在jbuilder中,通过“Tools|config libraries..”,新建一个clss(名称随便,如oracle),将C:oracleora81jdbclibclass12.zip加入class中,然后通过"Tools|Enterpriese setup",在"Database Drviers"中使用"Add",将该class加入,会生成oracle.config文件。此时即可用