Thank you very much, it works now!
Tobias
Juergen Schmidt schrieb:
Hi Tobias,
Tobias Neubert wrote:
Hi all,
I hope this is the right place to post this question. If not, please
tell me the right one.
Ok, I am new to UNO and I want to develop a filter for textdocuments.
Therefor I started with the AsciiReplaceFilter-example of the
development guide, which I can compile, package and install via
unopkg. The idea is to customize that filter until I have my own one.
My filter needs an additional jar-file to do its work. So I tried to
create a uno package that contains this additional jar file at the
root of the package. Moreover I inserted the following to the
manifest file:
<manifest:file-entry
manifest:media-type="application/vnd.sun.star.uno-component;type=Java"
manifest:full-path="third-party.jar"/>
that is not correct because it is no component jar. You simply need a
Jar manifest entry in your component jar that references the third
party jar in your package.
for example an entry like this:
Class-Path: ./mythirdparty.jar
For more detailed info see the Java documentation, in Jar file
specification the section about main attributes.
Juergen
Adding that uno package results in the following error:
###### Progress log entry 2007-09-04 15:51:46 ######
Copying: MyFilter.uno.pkg
Enabling: MyFilter.uno.pkg
Enabling: TypeDetection.xcu
Enabling: MyFilter.uno.jar
rollback...
Disabling: TypeDetection.xcu
rollback finished.
ERROR: (com.sun.star.ucb.CommandFailedException) { { Message = "An
error occurred while enabling: MyFilter.uno.jar", Context =
(com.sun.star.uno.XInterface) @181c2c8 },
Reason = (any) {
(com.sun.star.registry.CannotRegisterImplementationException) { {
Message = "", Context = (com.sun.star.uno.XInterface) @0 } } } }
Can anyone tell me what to to to use additional java libraries within
my uno package?
Any help is welcome. Cheers,
Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]