Method not found: cannot invoke

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ahakimi
Posts: 1
Joined: Sun Jul 06, 2014 1:14 pm
antibot: No, of course not.

Method not found: cannot invoke

Post by ahakimi » Sun Jul 06, 2014 1:30 pm

Hello;
I have a code for creating charts. I have added JFreechart librairies (jfreechat-1.0.13-swt.jar, jfreechart-1.0.13.jar, jcommon-1.0.16.jar) in the classpath of jdeveloper.
I have also added the import instruction: import org.jfree.chart.plot.IntervalMarker;
But, when compiling the code it displays me the following error:

Intervalmarker(double, int, java.awt.color) cannot invoke Intervalmarker(double, double)

i have the following instruction in my code that makes the error:
IntervalMarker intervaleCv1= new IntervalMarker(0, 16, new Color(214, 255, 214, 100));

Please where is the error. I cant understand what is the problem.

Thank you very much in advance.

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

Re: Method not found: cannot invoke

Post by david.gilbert » Tue Jul 08, 2014 5:41 am

The error doesn't make sense. You should copy and paste the actual error text, since maybe there is something in there that would give an additional clue. The other thing to check is that you don't have multiple copies of JFreeChart on your class path - this is sometimes an issue that causes nonsense compiler messages.
David Gilbert
JFreeChart Project Leader

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

Locked