现在的位置: 首页 > 综合 > 正文

iReport4 database JDBC connection 找不到驱动

2013年08月27日 ⁄ 综合 ⁄ 共 752字 ⁄ 字号 评论关闭

 iReport 的数据源如果是 通过JDBC连接的时候 ,在创建好JDBC连接后,测试时报相应的类或者驱动找不到的时,这说明缺少相

应的jar文件,比人是通过jtds来连接SQLSERVER 时 会提示某类找不到 或者缺少驱动之类的错误信息。

   这时,我们进入工具栏里的“工具”中的“选项”面板,这时就可以看到很多选项条,我们选择“CLASSPATH”, 在这里单击

“Add JAR”,把驱动包添加“确定”就OK啦!

 

参考图如下:

原文 参考如下: 

http://jasperforge.org/website/ireportwebsite/IR%20Website/ir_design_a_report.html?header=project&target=ireport

you can use your favorite database, in that case you have to provide the right URL, the JDBC driver and credentials. iReport proposes a list of well known
database drivers. If the one you need is not present, just type the name. If it is present and it is highlighted in red it means that the driver is not available in the classpath and must be added. To do so, select Tools > Options > iReport > Classpath and
add the required JARs to the classpath. Also, it's good practice to test the connection before saving it.

抱歉!评论已关闭.