Jump to content
JasperReports Library 7.0 is now available ×

Default directory for compiled reports?


burferd

Recommended Posts

How do I change the default directory for compiled reports?

 

 

I am trying to run a report in my code that runs fine in iReport, but I keep getting an error that says it cannot load class 'Report_name_bunchOfNumbers'.

 

 

I did a search on my computer (using Windows XP, tried all Jasper versions between 2.8.7 and 3.0.2, J2ee SDK 1.4.2) and found the class in question (Report_name_bunchOfNumbers) in directory C:Program FilesJasperSoftiReport(version).

 

 

I think this is the root of my problems.

How do I set the system up properly so I can generate a compiled report and have my code find it?

 

 

I move my compiled code to a directory C:ReportsJasperReports. I think what I need to do is also point my iReports to generate compiled reports in that directory as well.

 

 

Am I correct here or all washed up?????

 

 

Someone else MUST have gone through this before.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I suggest you to configure iReport to compile the reports in the same directory of the jrxml file.

 

IReport put the jrxml directory in the classpath at compilation and execution time, so this is a good place to put your classes. Otherwise simply add your favourite directory to the iReport classpath (options -> Classpath)

 

Giulio

Link to comment
Share on other sites

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...