You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by David Gradwell <da...@gradwell.com> on 2023/01/31 10:05:54 UTC

Using the Libre Office UNO Java interface on MacOS with NetBeans

Hi,

I am trying to write Java programs to make use of the  Libre Office UNO Java interface on MacOS.

I am aware of:
https://wiki.documentfoundation.org/Main_Page
https://wiki.documentfoundation.org/Documentation/DevGuide/LibreOffice_Developers_Guide
https://api.libreoffice.org/examples/DevelopersGuide/examples.html#FirstSteps
https://api.libreoffice.org/examples/examples.html#Java_examples
https://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide

I have succeeded in getting half a dozen of the examples to work.  I have NetBeans projects for each of these.  Getting the dependencies right was a struggle !

I had to make code changes so that the examples would run on MacOS (changes to the bootstrap to account for a Mac application code structure) and the bug in released version 7.4 issue that now has a fix.

I am happy to share these with anyone else that is trying to use UNO.

I am perplexed by the UNO interface and unable to access the attributes of the sub-types of the shapes in a diagram.  Help would be very welcome !

So, if anyone else is using UNO or trying to use UNO with Libre Office or Apache Open Office do make contact.

David Gradwell