class error - IReport

0

Good morning,

I've come across an error and I can't resolve it, the message is:

 


Exception
 

Message:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
Level:
    SEVERE
Stack Trace:
oracle.jdbc.driver.OracleDriver
    com.jaspersoft.ireport.designer.connection.JDBCConnection.loadDriver(JDBCConnection.java:63)
    com.jaspersoft.ireport.designer.connection.JDBCConnection.getConnection(JDBCConnection.java:126)
    com.jaspersoft.ireport.designer.data.fieldsproviders.SQLFieldsProvider.getFields(SQLFieldsProvider.java:240)
    com.jaspersoft.ireport.designer.data.ReportQueryDialog$FieldReader.run(ReportQueryDialog.java:777)

 

 

carolinelando's picture
Joined: May 18 2018 - 12:30pm
Last seen: 5 months 3 weeks ago

2 Answers:

0

When  I remember right, the JDBC drivers included in old iReport were just the free licenced (e.g. LGPL) ones. Not sure, what oracle licenced it's JDBC driver but I guess, you must include the jar to classpath (via options menu) manually. 

Be aware with "modern" driver versions, as iReport is actually (kind of) "deprecated" and is just running with Java7.

A new JDBC driver by oracle could be compiled with newer java versions (>= 1.8) and will throw exceptions when used.

So you will need to copy a "old" driver compiled with JRE <= 1.7

hth + regards

C-Box

C-Box's picture
2250
Joined: Jul 19 2006 - 5:58pm
Last seen: 1 week 3 days ago
0

that is because you needed to include  oracle jar to classpath of the driver

selvakumar.1405130's picture
Joined: Apr 12 2019 - 12:00am
Last seen: 2 weeks 3 days ago
Feedback
randomness