Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Package resourceloader NOT included in reporting engine :s

  1. #1
    Join Date
    Jan 2008
    Posts
    3

    Default Package resourceloader NOT included in reporting engine :s

    Hi, I'm new to the reporting engine and when at last i thought that y had finished the template with the Report Designer I copy-pasted some code from jfreereport-0.8.3-A4-pdf:
    Code:
     URL in = getClass().getResource("../Report/ReservasPorCliente.Report");
            JFreeReport report = null;
            ReportGenerator generator = ReportGenerator.createInstance();
            try {
                report = generator.parseReport(in);
                report.setData(tableModel);
            } catch (Exception e) {
               System.err.println("jButton1ActionPerformed() Error parseando el reporte!");
               System.err.println(e.getMessage());
               System.err.println(e.getStackTrace());
               System.err.println("******************************************************");
            }
    then, at compile time I got this!
    class file for org.jfree.resourceloader.ResourceManager not found


    I downloaded pentaho-reporting-engine-classic-0.8.9-ga package which only contains the report package inside jfree:
    ./source/org/jfree/report/
    no resourceloader here... any help would be MUCH appreciated

  2. #2
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    In the programming world, there is a concept called libraries. We make heavy use of it.

    Look into the "libs" directory and you'll find a couple of JARs that are needed to run the reporting engine. A programm as complex as a reporting engine almost always separates domains of concern into libraries to make it easier to maintain clean interfaces and to decouple the code.
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  3. #3
    Join Date
    Jan 2008
    Posts
    3

    Default

    Hi! Thanks! I know about the library staff.. but I thought that the pentaho-reporting-engine-classic-0.8.9-ga package tree didn't know about the libs dir.. THANKS AGAIN!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.