最近在网上看到一篇关于JFREECHART画股票图的BLOG,写的非常好.http://www.blogjava.net/Vencent/archive/2008/02/02/179085.html
由于非常好奇,我把他的程序COPY到本地的ECLIPSE下,用的JFREECHART是最新版:1.0.13.程序没有任何的编译错误,但当运行时,发现运行到JFreeChart chart = new JFreeChart("中国联通", JFreeChart.DEFAULT_TITLE_FONT, combineddomainxyplot, false);时就出现了错误,如下表示:
java.lang.VerifyError: (class: org/jfree/chart/JFreeChartInfo, method: <init> signature: ()V) Incompatible argument to function
at org.jfree.chart.JFreeChart.<clinit>(JFreeChart.java:248)
at org.jfree.chart.ChartFactory.createCandlestickChart(ChartFactory.java:1929)
at lottery.monitor.Test1.main(Test1.java:71)
Exception in thread "main"
请分析为什么别的人COPY他的代码进行运行时没有任何的错误,而我的环境就出现了这样的错误?望指教!