Search code examples
javajdbccrystal-reportsjndicrystal-reports-xi

JDBC Driver not found error in Crystal Reports XI?


I installed crystal reports XI for the reports of my java application. When I tried to create a new mysql connection via the JDBC(JNDI) I got an error "Failed to open the connection. Details: JDBC Driver not found." So I followed the tutorials on the internet and edit CRConfig.xml to path my mysql driver. I placed it under the same directory where the other jar files were located but still I got the same error message. I also placed it on my environment variables but still no luck. Please help! I need this done by tomorrow.

edit: btw Im doing this in crystal reports. Im trying to create a report to preview on my application.


Solution

  • Something to check, if you have folder or filenames with spaces in them you should enclose them within quotation marks. If that's not the problem, copy your CRconfig classpath into your question, it might be some other issue.