Crystal Report not works in JAR File
I'm using Eclipse All in one, which includes Crystal Reports.. I Connected my Java program with Crystal Reports and its working properly. Now my problem is that the Report is not working in JAR files.. It throws some exception as
"com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com.businessobjects
com.businessobjects.reports.sdk.JRCCommunicationAdapter- Error code:-2147215357 Error code name:internal"
Whats the Error.. I don't know. I think that i may missed some CLASSPATH Files. The included CLASSPATH Files are:
ReportViewer.jar
jrcerom.jar
Concurrent.jar
CrystalCharting.jar
CrystalCommon.jar
CrystalContentModels.jar
CrystalExporters.jar
CrystalExportingBase.jar
CrystalFormulas.jar
CrystalQueryEngine.jar
CrystalReportEngine.jar
CrystalReportingCommon.jar
icu4j.jar
keycodeDecoder.jar
log4j.jar
MetafileRenderer.jar
rasapp.jar
rascore.jar
rpoifs.jar
Serialization.jar
URIUtil.jar
xercesImpl.jar
xml-apis.jar
and the mysql-connector jar file
Anybody help me please...
# 1
It is hard to say what the problem is although I doubt it could be a classpath issue.
Check to make sure that all resource files, properties files or XML files are being loaded properly in your application now that it is a JAR. Sometimes absolute and relative paths to certain resources need to be adjusted when running from a JAR file.
It looks like the Exception is a third-party exception so I wouldn't know about that, however I advise checking the documentation for that Exception class as that may give you some useful hints as to where the problem lies.
# 2
Now i have made some Changes in my CLASSPATHS.. Now when i am opening the CRYSTAL REPORT from my JAR file. The Crystal Report Page is Opening without data, and it shows the following error message in a dialog window
Unable to load database connector
'com.crystaldecisions.reports.queryengine..driverImpl.DriverLoader'
now you have any idea.. please
# 3
> Unable to load database connector
> 'com.crystaldecisions.reports.queryengine..driverImpl.
> DriverLoader
>
>
> now you have any idea.. please
Is that a typo where you have two periods below?
>queryengine..driverImpl
Other than that I don't think anybody here can help you with that. If your classpath includes all necessary JAR files and you are able to access all your resources from within your application JAR file, then I imagine there is a problem with the third-party crystal decisions JAR file or how you are attempting to use it.
My advice to you is to try and contact support with the vendor or provider of this API or possibly try posting on a support forum on their website to see if somebody can help you there.