Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Just to follow up, I've gone over the process a couple times, refactoring
the copy-pastes, then double and triple checking that everything is in
place... and it seems that I now have it working. I guess I can soon
publish in the extensions website.

On Sun, Sep 20, 2015 at 5:42 PM, John D'Orazio <
john.dorazio@cappellaniauniroma3.org> wrote:

Hello everyone, I wrote and published an extension for OpenOffice in Java
using the OpenOffice Netbeans plugin.

Now I am trying to port it over to LibreOffice so I can publish it as an
extension there too.

At first I was getting some errors such as this:

Exception in thread "AWT-EventQueue-0" java.lang.VerifyError: Stack map
does not match the one at exception handler 354 Exception Details:
 Location:     io/bibleget/BibleGetJSON.JSONParse(Ljava/lang/String;)V
@354: astore   Reason:     Type
'com/sun/star/lang/IllegalArgumentException' (current frame, stack[0]) is
not assignable to 'com/sun/star/uno/Exception' (stack map, stack[0])   Current
Frame:     bci: @283     flags: { }     locals: { 'io/biblege

But I think I figured out what the problem there was, it's not enough to
just change the context of the Netbeans plugin environment to LibreOffice 5
and LibreOffice 5 SDK, it's also necessary to actually create a new
OpenOffice plugin project after adjusting the context so that the right
.jar files will be included in the libraries.

However when I try to create a new OpenOffice project, after going through
the wizard I am getting this error: "unknown entity
com.sun.star.frame.ProtocolHandler"

So I don't know if the project is being created correctly or not...

I tried deleting all files in the project except the LibreOffice jar
libraries, and copying over all the files from the OpenOffice project
together with all other libraries that I am using (not OpenOffice jars).
However when I "build and install in OpenOffice", it does install the
extension to the extension manager and open LibreOffice, and I do see the
addon menu with the menu items, but all of the menu items are greyed out.

Does LibreOffice use a different .xcu format than OpenOffice? I'm guessing
it's not liking something in the
registry/data/org/openoffice/Office/Addons.xcu.


--
John R. D'Orazio




-- 
John R. D'Orazio

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.