libreoffice-starter-extension icon indicating copy to clipboard operation
libreoffice-starter-extension copied to clipboard

'Error running LibreOffice' and Workaround

Open dfyockey opened this issue 2 years ago • 0 comments

Operating System: Fedora 34 (x86_64) LibreOffice version: LibreOffice 7.1.5.2 Eclipse version: 2021-03 (4.19) LOEclipse version: 4.0.1

When importing the unzipped libreoffice-starter-extension-master into Eclipse, two "No SDK or OOo set: won't build" items are listed in Eclipse's Problems tab, and the project in the Package Explorer is labelled with the red-box-with-white-x icon indicating an error. At the same time, the LibreOffice Properties section of the project's Properties dialog indicates that they're already set in accordance with the settings for LOEclipse; in my case, those settings are LibreOffice "LibreOffice 7.1" and SDK "7.1.4.2".

Running the project generates the error "Error running LibreOffice" in the Eclipse Error Log, and LibreOffice is not started. Interestingly, though, opening LO Writer finds that the extension is successfully installed.

This issue can be resolved by the minor workaround of going to Project->Properties->LibreOffice Properties as indicated in step 5 of "Get started" in README.md and, without changing any settings, clicking the "Apply and Close" button. As a result, the values "project.sdk" and "project.ooo" listed in libreoffice-starter-extension-master/.unoproject are updated to match those set in LibreOffice Properties, and the problems and error are resolved so LibreOffice starts as intended when the project is run.

dfyockey avatar Jul 30 '21 16:07 dfyockey