问题描述
使用 XComponentContext xContext = Bootstrap.bootstrap()
,我试图通过Java获取OpenOffice的远程办公室组件上下文。但是它提出异常
找不到办公室可执行文件
。
Using XComponentContext xContext = Bootstrap.bootstrap()
, I am trying to get the Get the remote office component context of OpenOffice through Java.But its raising exceptionno office executable found
.
我在CLASSPATH中指定了OpenOffice程序目录的路径,但是我我得到这个例外。我怎么能解决这个问题?
I have specified the path of program directory of OpenOffice in the CLASSPATH, yet i am getting this exception.How can I resolve this problem?
推荐答案
1)从
2)字符串oooExeFolder =C:/ Program Files / OpenOffice.org 2.3 / program /;
2) String oooExeFolder = "C:/Program Files/OpenOffice.org 2.3/program/";
3)XComponentContext xContext = BootstrapSocketConnector.bootstrap(oooExeFolder);
3) XComponentContext xContext = BootstrapSocketConnector.bootstrap(oooExeFolder);
来源表单签出
这篇关于通过Java连接到OpenOffice时,没有办公室可执行文件发现异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!