Jump to content

Jasper on linux issue


manigandanms

Recommended Posts

Hi,

I am using Jasper 3.5.0 to generate pdf report. It works fine on windows xp but on the linux platform it throws an error while filling the report. Find below code snippet.

    swapFile = new JRSwapFile(REPORT_GENERATION_PATH, 2048, 2048);
            JRSwapFileVirtualizer virtualizer = new JRSwapFileVirtualizer(2, swapFile, true);
            parameters.put(JRParameter.REPORT_VIRTUALIZER, virtualizer);

JasperPrint jasperPrint = JasperFillManager.fillReport(REPORT_TEMPLATE_PATH + reportFileNameWithoutExt + ".jasper",
                    parameters, dataSource);

Error Stack trace:

java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
        at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:176)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:59)
        at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)
        at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83)
        at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:628)
        at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:544)

Thanks,
Mani

Link to comment
Share on other sites

  • 4 weeks later...
  • Replies 1
  • 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...