JDBCXYDataset cannot be resolved to a type

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
cello23
Posts: 1
Joined: Sat Oct 18, 2014 11:09 pm
antibot: No, of course not.

JDBCXYDataset cannot be resolved to a type

Post by cello23 » Sat Oct 18, 2014 11:36 pm

Hi,
I installed the libraries (jcommon jfreechart-1.0.19-1.0.23) and I have successfully created a chart, but when i try to use a database JDBCXYDataset (JDBCPieDataset, JDBCCategoryDataset) i get an error:
"JDBCXYDataset can not be resolved to a type".

Can you please give me a hint?

Thanks so much.

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: JDBCXYDataset cannot be resolved to a type

Post by paradoxoff » Tue Oct 21, 2014 6:33 am

A missing import?

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

Re: JDBCXYDataset cannot be resolved to a type

Post by david.gilbert » Sun Oct 26, 2014 2:50 pm

If it is finding other JFreeChart classes (so you know the JFreeChart/JCommon jar files are on your class path) then you should check that you don't have two JFreeChart jar files on your class path (this causes problems and the error messages are never clear).
David Gilbert
JFreeChart Project Leader

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

Locked