sharp_office icon indicating copy to clipboard operation
sharp_office copied to clipboard

Get a officeHome not set and could not be auto-detected error

Open chareice opened this issue 12 years ago • 3 comments

Exception in thread "main" java.lang.IllegalStateException: officeHome not set and could not be auto-detected

How to fix it?

chareice avatar Sep 29 '13 00:09 chareice

Have you found a solution? I got the same error...

ikocev avatar Mar 10 '14 12:03 ikocev

set office home like:
OfficeManager officeManager = new DefaultOfficeManagerConfiguration().setOfficeHome("C:\Program Files (x86)\OpenOffice 4").buildOfficeManager();

softprg avatar Aug 12 '15 10:08 softprg

    OfficeManager officeManager = LocalOfficeManager.builder().officeHome("/opt/libreoffice6.1").install().build();

lly-ke avatar May 09 '19 08:05 lly-ke