cancel
Showing results for 
Search instead for 
Did you mean: 

CR4E runtime error

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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?

ted_ueda
Employee
Employee
0 Kudos

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

Former Member
0 Kudos

That's exactly what I'm trying to do......... I just used the jars from CRE4v2 and it took care of the CrystalException..... and guess what???? SUCCESS!!!!!!!!!

Thank you so much for all of your help!!! You deserve a big raise!

Answers (4)

Answers (4)

Former Member
0 Kudos

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!

ted_ueda
Employee
Employee
0 Kudos

That class wasn't part of XI R1 - do you have any classes from Crystal Reports for Eclipse or BusinessObjects Enterprise XI 3.x?

I recommend cleaning out your jar files, and copying them back anew.

Sincerely,

Ted Ueda

Former Member
0 Kudos

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!)

ted_ueda
Employee
Employee
0 Kudos

Do you have the folder where CRConfig.xml is located in the ClassPath?

There should be a reportlocation tag in that file.

A stack trace with that exception would also give more info where things went wrong.

Sincerely,

Ted Ueda

Former Member
0 Kudos

I have Crystal Reports Developer XI installed Version 11.0.0.1282

Is that what your after?

ted_ueda
Employee
Employee
0 Kudos

So you deployed the Jar file in:

C:\Program Files\Common\Business Objects\3.0\java\lib

folder.

Have you copied over the jar files in the following folder?

C:\Program Files\Common\Business Objects\3.0\java\lib\external

Sincerely,

Ted Ueda

ted_ueda
Employee
Employee
0 Kudos

Exactly what SDK would you be using?

It looks like you're missing the libs in the external folder.

Sincerely,

Ted Ueda

Former Member
0 Kudos

Eclipse SDK

Version: 3.4.0

Build id: I20080617-2000

ted_ueda
Employee
Employee
0 Kudos

Exactly which Crystal or Business Objects SDK are you using (not Eclipse version)?

Sincerely,

Ted Ueda