java.lang.NoClassDefFoundError: org/jfree/ui/Spacer exceptio

A discussion forum for the JCommon class library.
Post Reply
Posts: 2
Joined: Fri Aug 11, 2006 8:09 am
Location: Bangalore

java.lang.NoClassDefFoundError: org/jfree/ui/Spacer exceptio

Post by arumugam » Fri Aug 18, 2006 8:17 am

I'm trying to use JFreeReport in a application with Jboss 4.0.0
I'm using the same librairies that the example found on

i get an exception like
java.lang.NoSuchMethodError: org.jfree.base.log.DefaultLog.installDefaultLog()V

i'm using jfreereport-0.8.7-5 and jcommon-1.1.0 . through these forum i found that the problem was multiple copies of jcommon in the classpath.
i removed an older version of jcommon(0.9.6).but now my existing n functional jfree chart(0.9.21) applications requires the older version of jcommon.(i think)

i now get an exception like java.lang.NoClassDefFoundError: org/jfree/ui/Spacer
could anyone help me get around this problem

Posts: 25
Joined: Mon Oct 08, 2007 7:16 am

Post by mahesh_burgu » Mon Oct 08, 2007 7:30 am

even i have the same problem.....did u get any solution....if so please help me out

JFreeChart Project Leader
Posts: 11732
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.

Post by david.gilbert » Thu Nov 15, 2007 11:36 am

If you are using a version of JFreeChart that is older than 1.0.0, then you'll need to make sure you use the version of JCommon that shipped with JFreeChart (others *might* work, but sometimes don't).

Starting with JFreeChart 1.0.0, things are much simpler: JFreeChart 1.0.x will work with any version of JCommon from 1.0.0 onwards. I recommend that you use the latest JCommon (1.0.12) but things should still work with any 1.0.x version.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide

Posts: 2
Joined: Fri Jul 17, 2009 6:34 pm

Re: java.lang.NoClassDefFoundError: org/jfree/ui/Spacer exceptio

Post by halissonmartins » Fri Jul 17, 2009 8:11 pm

Hi, I'm using jboss-3.2.5, jfreechart-1.0.10 and jcommon-1.0.13, them having the same exception.

I allread looked this post, so I decide to search if I have another Jar in the classpath.
In my search, I found another Jars in console-mgr.sar (jfreechart.jar - 1.0, jcommon.jar - 1.0).

I'm thinking that those Jars in console-mgr.sar are having conflict whith the Jars in my aplication, but I'm not sure if I must have to remove the console-mgr.sar of my Jboss to resove this problem.

Someone can help-me?

Post Reply