Jaspersoft Studio Data Connector for MySQL

0

I have successfully created a data connection for iReports but I am trying to get Jaspersoft Studio working with MySQL.  Is there something special I have to do with Studio that I don't for iRerpots.  In STUDIO I clicked on the Data Adapter Wizard, clicked next,  chose "Configure Database JDBC Connection",  Entered the following for the JDBC Drive and URL.

JDBC Drive: com.mysql.jdbc.Driver
JDBC Url: jdbc:mysql://localhost/stat_warehouse

When I test the connection,  I get the following error:  Reason: java.lang.ClassNotFoundException:com.mysql.jdbc.Driver

Can you help me?

 

 

 

clshafer's picture
Joined: Mar 28 2012 - 4:47pm
Last seen: 5 years 8 months ago

1 Answer:

0

You need to download and add the mysql driver to the classpath of Jaspersoft Studio.  Older versions of iReport were shipped with the MySQL driver, but I don't think they are shipped with the newer versions.

mgeise's picture
20887
Joined: Mar 5 2007 - 6:18am
Last seen: 2 months 2 days ago
I am a quite ignorant on the connectors stuff. I was able to download mysql-connector-odbc-noinstall-5.2.2-win64 folder with other folders (bin,lib,test). Is there a specific file I need to add to the classpath? or the entire folder? and where is the classpath to add this to? Thank you.
clshafer - 7 years 3 weeks ago
found it. Thank you!!!
clshafer - 7 years 3 weeks ago

FYI the DataAdapter Wizard has a tab where the path to the driver jar file is entered

day7 - 6 years 2 months ago
show 1 more...

I have been unable to find the mysql jdbc driver jar anywhere.

john.v.little - 5 years 2 months ago
Feedback
randomness