Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: java.lang.NoClassDefFoundError:

  1. #1
    Join Date
    Mar 2003
    Posts
    4,947

    Default java.lang.NoClassDefFoundError:

    Hi Taqua

    I'm about to bail on jfreereport. I've coded it and it runs fine from within
    my IDE (jbuilder 7 pro), However when I load it from an applet
    I get the following message.

    ava.lang.NoClassDefFoundError: com.jrefinery.report.util.SystemOutLogTarget
    at com.jrefinery.report.util.ReportConfiguration.class$(Unknown Source)
    at com.jrefinery.report.util.ReportConfiguration.<clinit>(Unknown Source)
    at com.jrefinery.report.JFreeReport.<init>(Unknown Source)
    at par.mod.TstPreview.createReport(TstPreview.java:901)
    at par.mod.HyperLinkPanel.jBttnDtl_actionPerformed(HyperLinkPanel.java:583)
    at par.mod.HyperLinkPanel$36.run(HyperLinkPanel.java:435)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy

    What am I doing wrong ??

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

    Default

    Hi,

    your JBuilder is not smart enough to detect dynamicly loaded classes.

    The class com.jrefinery.report.util.SystemOutLogTarget is loaded via "Class.forName()", and therefore not referenced directly. JBuilder does only include files which are referenced from one of the class files of the project.

    I guess you will also miss most of the functions, the resource bundle classes and the export plugins of the Preview package.

    If there is an option to include all class files in the Jar, then try it, else you would have to use an other build/packaging method (ANT for instance).

    Have more fun,
    said Thomas

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.