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

Exception on Unix machine With Jasper reports


2004 IR Help

Recommended Posts

By: srinivas - srini_maduri

Exception on Unix machine With Jasper reports

2005-09-11 23:18

Hi all

 

Iam using the following code to generate the jasper reports in

Excel format.. I developed them using JDeveloper on windows machine

which is working fine. When Iam trying to deploy the same on Unix

machine, it is throwing the following Exception.

 

java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/fill/JRVerticalFiller

 

not even there is no nested exception.

 

 

System.setProperty(

"jasper.reports.compile.class.path",

context.getRealPath("/WEB-INF/lib/jasperreports-0.6.1.jar")

+ System.getProperty("path.separator"));

+ context.getRealPath("/WEB-INF/classes/"));

File reportFile =

new File(

getServletContext().getRealPath(

"/myreport/" + fileName + ".jasper"));

JasperReport jasperReport =

(JasperReport) JRLoader.loadObject(reportFile.getPath());

 

 

Pls suggest me a good solution

 

regards

srinivas.M

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