iReport4 database JDBC connection 找不到驱动

 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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值