Jump to content
We've recently updated our Privacy Statement, available here ×

NoClassDefFoundError: org/apache/commons/java


Recommended Posts

By: Ruben Misrahi - rnmisrahi

NoClassDefFoundError: org/apache/commons/java

2006-08-24 05:54

I upgraded from Jasper 1.0 to Jasper 1.2.5.

 

Are there any step by step instructions on how to install it in a Windows XP environment?

I keep getting this error.

NoClassDefFoundError: org/apache/commons/java

 

Of course I also upgraded to iReports 1.2.5 and recompiled my .jrxml

There seem to be a problem with the CloasLoader

 

Any help would be greatly appreciated

 

 

By: Teodor Danciu - teodord

RE: NoClassDefFoundError: org/apache/commons/

2006-08-24 06:13

 

Hi,

 

Put the commons-javaflow.jar into the classpath of you application. You can find it in the /lib directory of our project distribution.

 

I hope this helps.

Teodor

 

 

 

By: Ruben Misrahi - rnmisrahi

RE: NoClassDefFoundError: org/apache/commons/java

2006-08-24 10:19

Thanks Teodor. It sure helped.

I wanted to prevent the memory leak problem in JasperViewer. I think this version solves most of the problem.

For whoever is interested, I also added a line of code after a call to viewReport that I think helps preventing memory leaks:

viewer.dispose();

viewer = null;

Where viewer is an instance of JasperViewer

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...