Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EasyHack: Update code examples to work with noa-libre >= 3.0 #12

Open
xbubli opened this issue Aug 10, 2016 · 0 comments
Open

EasyHack: Update code examples to work with noa-libre >= 3.0 #12

xbubli opened this issue Aug 10, 2016 · 0 comments

Comments

@xbubli
Copy link
Collaborator

xbubli commented Aug 10, 2016

Since noa-libre 3.0, Libreoffice UNO runtime environment jars are no longer included in the release. This means that the old code will no longer work with 3.0 and newer, as the main class of an application using noa is now best to be loaded with URLClassLoader aware of possible locations of UNO on the system.

This task is about rewriting all code examples (in examples folder) to work with noa-libre 3.0 using URLClassLoader that comes with it (ag.ion.bion.officelayer.util.OfficeLoader). One of the possible ways to do it is to move the body of the code example into a nested class and load it with OfficeLoader from the top-level class.

It is already done in this Calc example and this simple connection example, feel free to use those as an inspiration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant