为什么在jbuilder 2005运行正常,打包exe后就错了,里面用到了第三方jfreechart
为什么在jbuilder 2005运行正常,打包exe后就错了,里面用到了第三方jfreechart
感激不禁!
::::
java.lang.ExceptionInInitializerError at org.jfree.chart.ChartFactory.createBarChart(ChartFactory.java:612)
at ha.testscript.BarcharTest.createChart(BarcharTest.java:132)
at ha.testscript.BarcharTest. <init> (BarcharTest.java:42)
at ha.testscript.testPlanExcutePanel.CteateChart(testPlanExcutePanel.jav
a:258)
at ha.testscript.MainThread.run(MainThread.java:18)
Caused by:
java.util.MissingResourceException: Can 't find bundle for base name o
rg.jfree.chart.plot.LocalizationBundle, locale zh_CN
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
.java:804)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:764)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
at org.jfree.chart.plot.CategoryPlot. <clinit> (CategoryPlot.java:246)
... 5 more
------解决方案--------------------jfreechart的包一起打进去了么
------解决方案--------------------试试免费版 Jar2Exe:
http://www.regexlab.com/jar2exe/
------解决方案--------------------这个问题我也碰到过,我是打包成JAR文件时出错,意思是我没把第三方倒入的包打包进去,倒EXE我没导过,我想也应该差不多吧,只要自己导的时候看清楚点,当跳到显示出要你导第三方包的时候,你全选,我想应该没问题的