error with licences class (runtime) after upgr 0.9.10 0.9.16

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
heijho01
Posts: 12
Joined: Thu Jul 17, 2003 2:16 pm

error with licences class (runtime) after upgr 0.9.10 0.9.16

Post by heijho01 » Wed Feb 11, 2004 9:35 am

hello,

(here a second post of the topic, already posted it in the sticky new version 0.9.16 but this one is read more)

I have updated from JFreeChart 0.9.10 to 0.9.16 and so
I upgraded JCommon from 0.8.5 to 0.9.1

problem is that, with creation of a new Gantt chart I get an error (with running the application, not with compiling it)

error with Stacktrace:

java.lang.NoSuchMethodError: org.jfree.ui.about.Licences.getInstance()Lorg/jfree/ui/about/Licences;

at org.jfree.chart.JFreeChartInfo.<init>(Unknown Source)

at org.jfree.chart.JFreeChart.<clinit>(Unknown Source)

at org.jfree.chart.ChartFactory.createGanttChart(Unknown Source)

at application.MainFrame.<init>(MainFrame.java:441)

at application.ABS.<init>(ABS.java:54)

at application.ABS.main(ABS.java:171)


Do you know what causes this?

thanks for your help in advance, and thanks for helping me with my previous upgrading problem,

Jeroen

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

Post by david.gilbert » Thu Feb 12, 2004 12:10 pm

My two guesses are that you haven't added jcommon-0.9.1.jar to your classpath OR you have two versions of jcommon on your classpath.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

heijho01
Posts: 12
Joined: Thu Jul 17, 2003 2:16 pm

Post by heijho01 » Fri Feb 13, 2004 9:33 am

your two questions gave me an idea. This was my classpath as it was with errors:

C:\Projecten\ABS\jfreereport-0.8.4_1\jfreereport-0.8.4_1-all.jar;
C:\Projecten\ABS\jfreechart-0.9.16\jfreechart-0.9.16.jar;
C:\Projecten\ABS\jfreechart-0.9.16\lib\jcommon-0.9.1.jar;

I just removed JFreeReport from the classpath, as it could cause the error ... it worked! (No problem, It wasn't used really at the moment)

many thanks,

Jeroen

Locked