by grinder22 » Tue Feb 06, 2018 8:45 pm
I am using CLI (.Net) rather than java. But most of the functionality seems to be the same.
I am using a call like this - XComponentContext xContext = uno.util.Bootstrap.bootstrap();
Provided the JAVA interface has the same thing, as long as Open Office and the SDK are installed, this should kick off an soffice process for you, rather than needing to start one yourself. I implement a disposable extension that kills the process after I'm done with it.
For what it's worth, I'm starting to lean toward leaving a background soffice service running instead. I think it will be more stable in the long run.
OpenOffice SDK 4.1.2
OpenOffice CLI
Window 10