Jump to content
Changes to the Jaspersoft community edition download ×

JasperReport java.lang.NoClassDefFoundError


2004 IR Help

Recommended Posts

By: Phyo Wai Lin - g4029672

JasperReport java.lang.NoClassDefFoundError

2005-05-13 22:51

I got the following exceptions when I filled .jasper file in my application. .jasper file was compiled in iReport 0.4.1

 

When I used the jasper file which was compiled with JasperCompileManager.compileReportToFile didn't give any errors. I used JasperReport 0.6.4

 

Could anyone help me?

 

Exception occurred during event dispatching:

 

java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/env/INameEnvironment

 

at java.lang.Class.getDeclaredConstructors0(Native Method)

 

at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)

 

at java.lang.Class.getConstructor0(Class.java:1762)

 

at java.lang.Class.newInstance0(Class.java:276)

 

at java.lang.Class.newInstance(Class.java:259)

 

at net.sf.jasperreports.engine.design.JRDefaultCompiler.loadCalculator(JRDefaultCompiler.java:192)

 

at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:370)

 

at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:126)

 

at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:118)

 

at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:151)

 

at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:472)

 

at com.escl.pos.reports.SalesByMember.actionPerformed(SalesByMember.java:144)

 

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)

 

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)

 

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)

 

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)

 

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)

 

at java.awt.Component.processMouseEvent(Component.java:5093)

 

at java.awt.Component.processEvent(Component.java:4890)

 

at java.awt.Container.processEvent(Container.java:1566)

 

at java.awt.Component.dispatchEventImpl(Component.java:3598)

 

at java.awt.Container.dispatchEventImpl(Container.java:1623)

 

at java.awt.Component.dispatchEvent(Component.java:3439)

 

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)

 

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)

 

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)

 

at java.awt.Container.dispatchEventImpl(Container.java:1609)

 

at java.awt.Window.dispatchEventImpl(Window.java:1585)

 

at java.awt.Component.dispatchEvent(Component.java:3439)

 

at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)

 

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)

 

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

 

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)

 

at java.awt.Dialog.show(Dialog.java:538)

 

at com.escl.pos.ui.menubar.JMenuBarMemberCard.actionPerformed(JMenuBarMemberCard.java:248)

 

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)

 

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)

 

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)

 

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)

 

at javax.swing.AbstractButton.doClick(AbstractButton.java:289)

 

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)

 

at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)

 

at java.awt.Component.processMouseEvent(Component.java:5093)

 

at java.awt.Component.processEvent(Component.java:4890)

 

at java.awt.Container.processEvent(Container.java:1566)

 

at java.awt.Component.dispatchEventImpl(Component.java:3598)

 

at java.awt.Container.dispatchEventImpl(Container.java:1623)

 

at java.awt.Component.dispatchEvent(Component.java:3439)

 

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)

 

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)

 

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)

 

at java.awt.Container.dispatchEventImpl(Container.java:1609)

 

at java.awt.Window.dispatchEventImpl(Window.java:1585)

 

at java.awt.Component.dispatchEvent(Component.java:3439)

 

at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)

 

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)

 

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

 

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)

 

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)

 

at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

 

 

 

 

 

By: C-Box - c-box

RE: JasperReport java.lang.NoClassDefFoundEr

2005-05-15 00:29

I remember having read that you must put the jdt-compiler.jar in your classpath at your running app when calling the fill-method when the report was compiled with JDT-Compiler... in 0.6.6 the it's not a must to do so... but in some older version I think there was the dependency.

 

hth (just a guess)

 

C-Box

 

 

 

 

By: Phyo Wai Lin - g4029672

RE: JasperReport java.lang.NoClassDefFoundError

2005-05-15 20:46

Thanks for your help. It 's working now.

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