JodConverter:Staroffice.ServiceManager开始,但找不到它的PID



我在开始 officeManager 时遇到了下一个问题:

接受接受的过程 '插座,主机= 127.0.0.1,端口= 2002,tcpnodelay = 1; urp; staroffice.ServiceManager' 开始,但找不到它的pid

@Configuration
public class LibreOfficeConfig {
    @Value("${libre.office.path}")
    private String officeHomeDirectory;
    @Bean
    public OfficeManager officeManagerConfig() {
        return LocalOfficeManager.builder()
                .install()
                .officeHome(Paths.get(officeHomeDirectory).toFile())
                .install()
                .build();
    }
}
public class LibreOfficeConversionServiceImpl implements DocumentConversionChain {
    private void startOfficeManager() {
        if (!officeManager.isRunning()) {
            try {
                officeManager.start();
            } catch (OfficeException e) {
                throw new RedactionServiceException(e.getMessage(), e);
            }
        }
    }
}

在我的win7开发环境中,我面临的例外完全相同:" org.jodconverter.office.officeException:一个带有cackstring'套接字的过程,主机= 127.0.0.1,port = 8100,tcpnodelay = 1; urp; urp; staroffice; staroffice.servicemanager''

我搜索了Google,几乎没有信息,但有人说:

jodconverter config文件夹不能有中文字母!

我已经尽力重新安装libreoffice,启动之前的服务,都失败了!

最后,我将Win7默认语言从中文更改为英语,因此无法找到" pid"。例外!

希望可以有意义。

最新更新