sharp_office
sharp_office copied to clipboard
Get a officeHome not set and could not be auto-detected error
Exception in thread "main" java.lang.IllegalStateException: officeHome not set and could not be auto-detected
How to fix it?
Have you found a solution? I got the same error...
set office home like:
OfficeManager officeManager = new DefaultOfficeManagerConfiguration().setOfficeHome("C:\Program Files (x86)\OpenOffice 4").buildOfficeManager();
OfficeManager officeManager = LocalOfficeManager.builder().officeHome("/opt/libreoffice6.1").install().build();