ekoz / kbase-doc

文档在线预览编辑,文档水印 / Office files preview or edit online, doc/docx convert to html, watermark
Apache License 2.0
470 stars 120 forks source link

soffice.bin为什么找不到 #1

Closed kinky2015 closed 4 years ago

kinky2015 commented 6 years ago

java.lang.IllegalStateException: invalid officeHome: it doesn't contain soffice.bin org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.buildOfficeManager(DefaultOfficeManagerConfiguration.java:167) ~[jodconverter-core-3.0-beta-4.jar:na] 我已经安装了LibreOffice软件,也能在电脑上找到,我是在win10上安装的,请问有解决方案吗?

kinky2015 commented 6 years ago

不好意思 是我自己粗心,问题已经自己解决。谢谢!

qkmc-rk commented 4 years ago

请问是什么问题怎么解决? 我的mac上明明有soffice.bin, 但java中就是提示找不到

ekoz commented 4 years ago

@qkmc-rk office.home=D:/Program Files/LibreOffice 配置文件里需要指定下,mac上的可以问下 @kinky2015

qkmc-rk commented 4 years ago

我的也解决了,MacOS下,只需要指定office根目录,不需要精确到bin目录或者program目录!

ekoz commented 4 years ago

8

18810211910 commented 1 year ago

@qkmc-rk 咋解决的?office.home=/Applications/LibreOffice.app/Contents 配置之后 kbase-doc-alpha启动也是报错,根目录啥意思office.home=/Applications/LibreOffice.app这样也是报错