I'm using the createVerticalBarChart() method of the ChartFactory (version 0.7.2 of JFreeChart).
It used to work fine, and I have not changed anything in the code. But now I have started getting a java.lang.NoClassDefFoundError on the call. This did not happen previously
I am in the process of upgrading to version 0.8.1, but also want to work out why the old graph has stopped working?
Any ideas?
createVerticalBarChart
Re: createVerticalBarChart
Hi Mike,
Post the full text of the exception, and the versions of the jfreechart and jcommon jar files that you are using.
Regards,
DG.
Post the full text of the exception, and the versions of the jfreechart and jcommon jar files that you are using.
Regards,
DG.
Re: createVerticalBarChart
Uprgraded to latest Version 0.8.1 of JFreeChart and JCommon. Getting a different error message, from the same line of code ( JFreeChart chart = ChartFactory.createVerticalBarChart(title, categoryAxisLabel, valueAxisLabel,data,legend); )
java.lang.InternalError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.
I've got a feeling something has changed in the environment of the OS that has stopped the charts from working.
java.lang.InternalError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.
I've got a feeling something has changed in the environment of the OS that has stopped the charts from working.
Re: createVerticalBarChart
Searching the thread for previous messages has found info on:
http://www.object-refinery.com/phorum-3 ... =908&t=908
http://www.object-refinery.com/phorum-3 ... =908&t=908