• 全部
  • Java SE
  • Java EE
  • J2ME
  • IDE工具
  • 求助
  • 内推招聘
  • 问答

请教jbuilder打包需要注意的地方?目前发现两个问题,300分相送

www203 上海万象文化配送有限公司 信息技术部总监  2005-10-31 02:57:36
一个是邮件发送的问题,在jbuilder里面运行的时候正常
打包成exe之后报错:
另外在使用jfree生成饼状图的地方,在jbuilder里面run可以顺利出现图形
但是在打包成exe之后也报告如下错误,jfree使用的版本是1。0

-----------------------发送邮件错误
javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME ty
pe multipart/mixed;
boundary="----=_Part_0_21909041.1130741694187"
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at com.china1024.operation.util.SendMailUtilC.smtp(SendMailUtilC.java:76
)
at com.china1024.operation.util.SendMailUtilC.sendMails(SendMailUtilC.ja
va:100)
at com.china1024.operation.view.SendMaiToCustomerStep2View.actionPerform
ed(SendMaiToCustomerStep2View.java:99)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
64)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at javax.swing.plaf.basic.BasicInternalFrameUI$GlassPaneDispatcher.retar
getMouseEvent(BasicInternalFrameUI.java:1407)
at javax.swing.plaf.basic.BasicInternalFrameUI$GlassPaneDispatcher.forwa
rdMouseEvent(BasicInternalFrameUI.java:1343)
at javax.swing.plaf.basic.BasicInternalFrameUI$GlassPaneDispatcher.mouse
Released(BasicInternalFrameUI.java:1273)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
ex2 in sendmail.java:javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME ty
pe multipart/mixed;
boundary="----=_Part_0_21909041.1130741694187"

--------------jfree报出的错误
java.lang.ExceptionInInitializerError
at org.jfree.chart.ChartFactory.createPieChart3D(ChartFactory.java:490)
at com.china1024.operation.report.SalestotalReportStep2VIew.getImage(Sal
estotalReportStep2VIew.java:71)
at com.china1024.operation.report.SalestotalReportStep2VIew.jbInit(Sales
totalReportStep2VIew.java:105)
at com.china1024.operation.report.SalestotalReportStep2VIew.<init>(Sales
totalReportStep2VIew.java:48)
at com.china1024.operation.report.SalestotalReportStep1View.actionPerfor
med(SalestotalReportStep1View.java:249)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
64)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
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:773)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
at org.jfree.chart.plot.PiePlot.<clinit>(PiePlot.java:387)
... 28 more
...全文
212 点赞 收藏 16
写回复
16 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
xueyi0108 2006-04-27
m
回复
www203 2005-11-03
UP
回复
www203 2005-11-02
正在按照 pigo的说法在试验
非常感谢
回复
www203 2005-11-02
果真是这种问题
但是还没有解决
我把一些其他地方的activation.jar统一之后竟然打包的时候没有
java.activation这些东西打不进去了
回复
www203 2005-11-01
UP
回复
pigo 2005-11-01


很可能是javamail和jaf的版本问题。
你的javamail放了两个不同版本的到lib目录。
这是使用javamail时候最常出现的错误。
这个错误 javax.mail.NoSuchProviderException: smtp
一般是因为mail.jar有两份,而你这个错误,则可能是activation.jar有两份。




下面是国外网站上的答案:

http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=3534771&cat=10&thread=6294&treeDisplayType=threadmode1&forum=190#3534771


These error messages are produced by JavaMail and are completely misleading.
The root cause of the error is a mis-matched or a duplicate pair of mail.jar and
activation.jar. Bugzero packaged mail.jar and activation.jar under WEB-INF/lib,
and if your servlet engine have its own pair of jars in its common or shared lib,
problem may arise. A simple solution is to remove one pair of mail.jar and
activation.jar either from Bugzero's WEB-INF/lib directory, or from servlet engine's
common/share lib directory.



回复
miaoliujun 2005-11-01
确定所有的JAR都包含进去了吗?
回复
ww203 2005-11-01
UP
回复
www203 2005-10-31
up
回复
www203 2005-10-31
UP
回复
OnlyFor_love 2005-10-31
如果楼主弄好的话,记得把方法帖出来,我已经收藏了这个帖子!

先谢谢了!

--------------------------------------------------------------------------------
让开,让开~~~~~~~
╭══╮
╭╯ΘΘ ║
╰⊙═⊙╯。oо○-俺的灌水车来了!!
回复
www203 2005-10-31
UP
回复
OnlyFor_love 2005-10-31
看看这个帖子吧!
http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=124&threadID=9138&tstart=180


呵呵
回复
OnlyFor_love 2005-10-31
你是用jbuilder自带的打包工具,还是用的exe4j。
一般用exe4j都不错的
回复
www203 2005-10-31
UPi
回复
www203 2005-10-31
另外一个帖子在:
http://community.csdn.net/Expert/topic/4361/4361551.xml?temp=.9978296
回复
相关推荐
发帖
Java
创建于2007-09-28

4.7w+

社区成员

Java相关技术讨论
申请成为版主
帖子事件
创建了帖子
2005-10-31 02:57
社区公告
暂无公告