on 01-28-2009 10:35 PM
Hi. I am trying to get a java application to run a Crystal Report. Whenever I try to run my app, I am receiving the following error message:
java.lang.NoClassDefFoundError: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl
Is there some jar file that I am missing ? The only jars I read that I needed were the ones that were included in the Business Objects java folder. Did I miss something?
Thanks for any help.
Okay.... I've cleaned out my jar files and am ready to copy them back, however I'm not really sure that I'm going to the right places. Can you verify for me that I'm copying the correct ones?
I'm bringing in all jar files from :
C:\Program Files\Common\Business Objects\3.0\java\lib
C:\Program Files\Common\Business Objects\3.0\java\lib\external
Now the CrystalReportsRuntime jar file that I had needed (which contains the ReportViewer class) was not listed in either of the above directories so I went to the following directory and copied it:
C:\Eclipse\Version 3.4\eclipse\plugins\com.businessobjects.crystalreports.crsdk.libs_12.2.200.r454\lib
Is that correct or am I not getting these from the correct place?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you already have Crystal Reports for Eclipse Version 2, then you don't need all that 11.0 libs...
I'm assuming you're displaying rpt files, and not connecting to BusinessObjects Enterprise or Crystal Reports Server.
If so, then I say just go with the CR4Ev2 libs, and don't use the others.
Sincerely,
Ted Ueda
Yes, I do have the CRConfig.xml file in my classpath. I did a little research and read that if I want to use absolute paths (which I do) I needed to remove the reportlocation tag. I removed the tag and it fixed that problem...... but now I have another one! Now at runtime I get the following exception:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/crystaldecisions/reports/common/CrystalException
I have added ALL jar files from "Program Files\Common\Business Objects\3.0\java\lib" and Program Files\Business Objects\3.0\java\lib\external". Not really sure what I'm missing here..... tried Googling the exception but didn't really find much help.
Thanks again for all of your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did not have all .jar files from the external folder copied into my project. The example I was going off of didn't mention that they all had to be there (not sure why?)....
Anways, I copied all of them over and it kinda worked...... no more error message indicating I was missing a class..... now I have a different error message:
Unexpected error determining relative path---- Error code:-2147467259 Error code name:failed
Not sure what this is referencing?
(Sorry if these questions seem novice.... I'm stumbling through the process of getting a Crystal Report to work with Java as I have never done any of this before!)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have Crystal Reports Developer XI installed Version 11.0.0.1282
Is that what your after?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Exactly what SDK would you be using?
It looks like you're missing the libs in the external folder.
Sincerely,
Ted Ueda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.