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


I'm trying to deploy macros within a custom oxt extension.
I successfully deployed a Basic library by doing the following:

in META-INF\manifest.xml I added:

 <manifest:file-entry manifest:full-path="CO_SaveDoc/" 
 <manifest:file-entry manifest:full-path="CO_SaveDoc/COSaveDoc.xcu" 
 <manifest:file-entry manifest:full-path="CO_SaveDoc/COSaveDoc.xcs" 

The "CO_SaveDoc" subdir contains several xba files as well as the script.xlb and dialog.xlb files.

If I install my custom oxt extension, I can see all my custom Basic macros within LO.

However, I'm failing to add my custom Java macros.

in META-INF\manifest.xml I added:

 <manifest:file-entry manifest:full-path="CO_SaveDoc_Java/parcel-descriptor.xml" 

 <manifest:file-entry manifest:full-path="CO_SaveDoc_Java/COj1.jar" 

and the "CO_SaveDoc_Java" subdir contains both files of which parcel-descriptor.xml has the 

<parcel language="Java" xmlns:parcel="scripting.dtd">
    <script language="Java">
        <locale lang="en">
            <displayname value="COj1.CO"/>
                CO macro.
        <functionname value="CO.COSaveDoc"/>
        <logicalname value="CO.COSaveDoc"/>
            <prop name="classpath" value="CO_SaveDoc_Java/COj1.jar"/>

If I zip that all up and try to install it as an .oxt then I get the following error:

%PROGRAMFILES%\LibreOffice 4.0\program>unopkg add --shared 

ERROR: An error occurred while enabling: COj1.jar
       Cause: Cannot determine 
registration class!

unopkg failed.

I don't know what the above message means and how to fix it.

I then tried this instead of the above in META-INF\manifest.xml:

 <manifest:file-entry manifest:full-path="CO_SaveDoc_Java/parcel-descriptor.xml" 
 <manifest:file-entry manifest:full-path="CO_SaveDoc_Java/COj1.jar" 

and I don't get any errors while installing the oxt extension. However, if I open LO I can't find 
my Java macro library.

What could I be doing wrong?

I'm trying to follow several guides on the web, among others, this one:

Does anyone know of an extension out there ( that I could 
download that actually has Java macros?



To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


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.