iReport4 database JDBC connection 找不到驅動

來源:互聯網
上載者:User

 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.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.