Driver not found using crystal reports with [ucanaccess] jdbc driver - crystal-reports

How can I use Crystal Reports with ucanaccess jdbc driver? I'm getting "Driver not found" error. I copied the ucanaccess jar file to Business objects in program files (C:\Program Files (x86)\Business Objects\Common\3.5\java), edited CRConfig.xml file and already had JDBC (JNDI) configured in Crystal Reports. MySQL, JTDS, Oracle and SQLite drivers work fine.

UCanAccess has dependencies - HSQLDB and Jackcess, with additional Jackcess dependencies - so the UCanAccess driver is more than just the "ucanaccess jar" file itself. See this answer for details on the other jar files you will need to make available to Crystal Reports if you want to use UCanAccess.

Related

Adding & configure .jar files in the jasper svn repository

I have created a jasper report using Jaspersoft Studio 6.19.1. This report utilizes a referenced jar file. The report works fine when running it locally. However, I'm getting an error when running the report from the repository. The error is unable to resolve referenced java class. My question what is the correct way to add and configure a jar file to the server?
Thank you

Where can I find the oracle10g database related files to my netbeans project?

I have made a College Management System project in Java using Netbeans 6.9.1 and Oracle10g. where can I find the database files related to my project so that i can export those files to another system?
If by "database files" you mean your tables, procedures and other data, then they are contained in Oracle's data files.
You'll have to export the data and then import them on another system.

Exception when running JasperReports on JasperServer

My Report works fine in iReport designer.
But when I try to run it on JasperServer it is giving me the following exception:
java.lang.Exception: 1 - oracle.jdbc.driver.OracleDriver     
I have ojdbc6.jar in the classpath.
I have resolved the issue myself.
The problem was I haven't restarted the jasper server.
I had put the jar in the following path:
C:/Program Files/jasperreports-server-cp-4.5.0/apache-tomcat/lib
After having the jar in the classpath, I restarted the jasper server. Even then, it was not working and I restarted the PC and now it's working.
Thanks simont and mdhahlman for responding.
Open iReport, go to Tools > Otions > Ireport > CLASSPATH, Then Add your oracle ODBC jar file there.

Connecting Eclipse JSP Page with MySQL DataSource

I need to connect MySQL datasource to a jsp page through eclipse. I need to add, delete and read data from tables. I am using Eclipse Helios, Tomcat Apache 7 and Struts 2. I found some related page How should I connect to JDBC database / datasource in a servlet based application? but i dont know how to use public Database().What do i import. Also pls tell me some simple procedure to add and access data from tables.
You need to learn JDBC first - http://download.oracle.com/javase/tutorial/jdbc/index.html - and then you need to add the appropriate Java MySQL driver to your application so that the JDBC connection creation string can locate it.
Start with the tutorial.
Edit: A very good JDBC-based database exploration program is the DBVisualizer - http://www.dbvis.com/ - where the free version can help you getting started as well as help you investigate database contents and an easy SQL editor for getting the selects right.
You have to download mysql server and MySqlWonkbench for better UI. https://dev.mysql.com/downloads/workbench/
You have to add mysql.jar file to run mysql on your eclipse.
https://dev.mysql.com/downloads/connector/j/5.1.html
Add jar file to your eclipse project
Rightclick on your project --> properties --> java Build path --> add external jar --> select your mysql jar from your pc.
refer this video
https://www.youtube.com/watch?v=5vzCjvUwMXg
refer this code for login/signup fusing jsp + mysql
https://github.com/Aksh0369/log_sin_jsp-MySql

How can I use Sun's JAI-ImageIO with an Eclipse BIRT plugin?

I'm trying to write an extension (plug-in) for Eclipse BIRT reporting. It involves extracting images from a file according to database entries and displaying them.
I am using Sun's JAI-ImageIO to access TIFF file data and convert to PNG for display within the report. My code complies, but throws a NoClassDefFound runtime exception:
SEVERE: Error happened while running the report.
java.lang.NoClassDefFoundError: javax/media/jai/PlanarImage
at org.eclipse.birt.sample.reportitem.rotatedlabel.util.GraphicsUtil.createDocImage
(GraphicsUtil.java:66)
at org.eclipse.birt.sample.reportitem.rotatedlabel.RotatedLabelPresentationImpl.onRowSets
(RotatedLabelPresentationImpl.java:136)
at org.eclipse.birt.report.engine.extension.ReportItemPresentationBase.onRowSets
(ReportItemPresentationBase.java:218)
at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.
processExtendedContent(LocalizedContentVisitor.java:966)
...
I am using the PlanarImage.getAsBufferedImage() method, so it should convert to a more standard image object. I have placed the JAI jar files in my JRE and tested the same basic code outside of the Eclipse plugin environment -- that works fine. It appears to be a CLASSPATH problem, but I've verified that all JREs on my system contain the necessary jar and DLL files in the appropriate places.
For a new JDBC driver, you must place the jar(s) in a special sub-directory of plugins -- is there a special place to put other third-party jars so BIRT can use them?
This has been solved in Eclipse extension for opening TIFF type 4 images. Basically you just need to make a subdirectory and place all the JARs and DLLs in it, add the jars to your classpath and add the DLLs to the "plugin dependencies" under "required native libraries".