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.