2013-09-24 15 views
2

雖然創建一個jfreechart即時通訊得到以下錯誤,我不知道它是什麼原因..任何幫助??java.lang.NoSuchMethodError :: org.jfree.ui.RectangleInsets。 <init>(DDDD)V

Exception in thread "main" java.lang.NoSuchMethodError: org.jfree.ui.RectangleInsets.<init>(DDDD)V 
    at org.jfree.chart.axis.Axis.<clinit>(Axis.java:146) 
    at org.jfree.chart.StandardChartTheme.<init>(StandardChartTheme.java:227) 
    at org.jfree.chart.ChartFactory.<clinit>(ChartFactory.java:229) 
    at modules.images.Chart.createChart(Chart.java:67) 
    at modules.images.Chart.<init>(Chart.java:59) 
    at modules.images.Chart.main(Chart.java:506) 
+0

看起來像提供'org.jfree.chart'(JFreeChart)和'org.jfree.ui'(JCommon)的軟件包之間的版本不匹配。你對這兩個軟件包有哪些版本?你有沒有嘗試下載兩者的最新版本? – 2013-09-24 11:52:54

+0

我有jcommon-1.0.16和jfreechart-1.0.14,它在我早期的其他同一類型的項目中工作.. – user2793926

回答

2

請確保您的類路徑中包含jcommon-1.0.0.jar(或更高版本)。

+0

我有jcommon-1.0.16.jar版本 – user2793926

+0

然後確保您沒有任何其他版本JCommon的類路徑。 – sunysen

+0

老兄它的工作..感謝很多,我有衝突的jar問題:)我有差異版本的jcommom刪除所有隻保留jcommon-1.0.20最後圖表是:) – user2793926

相關問題