64位操作系统 java调用cmd 执行print2flash 实现doc 转换成swf文件 10

Runtimerun=Runtime.getRuntime();Stringdoc="C:/Users/john/Downloads/FlashPaper/FlashPa... Runtime run=Runtime.getRuntime();
String doc="C:/Users/john/Downloads/FlashPaper/FlashPaper2.2/FlashPrinter.exe f:/abc.doc f:/ abc.swf /createlogfile:on /logfilename:D:/webyun/scanner/doc2swf.log "
Process process=run.exec(doc);
process.waitFor();
process.destroy();
我是这么写是错的,doc2swf.log日志记录异常为:
2013/7/17 16:22:34 Batch job started
2013/7/17 16:22:34 Converting file D:\webyun\DecisionCopyFile\SEVP_NMC_IMIB_SFER_EME_ACHN_LNO_P9\61\76\SEVP_NMC_IMIB_SFER_EME_ACHN_LNO_P9_20130430000000000.doc
2013/7/17 16:22:34 Using special processing method
2013/7/17 16:23:04 The file (D:\webyun\DecisionCopyFile\SEVP_NMC_IMIB_SFER_EME_ACHN_LNO_P9\61\76\SEVP_NMC_IMIB_SFER_EME_ACHN_LNO_P9_20130430000000000.doc) could not be converted. EOleException : Before printing timeout expired
2013/7/17 16:23:05 Process (2788) open
2013/7/17 16:23:05 Trying to kill the printing application (2788) C:\Program Files (x86)\Microsoft Office\Office12\WINWORD.EXE
2013/7/17 16:23:05 Waiting....
2013/7/17 16:23:05 Printing thread : EOleSysError 0x800706BA RPC 服务器不可用。
2013/7/17 16:23:05 TWordPP.Quit : EOleSysError 0x800706BA RPC 服务器不可用。
2013/7/17 16:23:05 done.
(D:\webyun\DecisionCopyFile\SEVP_NMC_IMIB_SFER_EME_ACHN_LNO_P9\3\4\SEVP_NMC_IMIB_SFER_EME_ACHN_LNO_P9_20130430000000001.doc) could not be converted. EOleException : Before printing timeout expired
2013/7/17 16:23:37 Process (8996) open

由于没有积分了就剩15分了,提问需要5分就剩10分了拜托各位大神帮帮忙吧
展开
 我来答
匿名用户
2013-07-17
展开全部
建议先通过命令行运行,看运行的状况,再回到JAVA里面调试
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式