Hi Tobias,

Tobias Krais wrote:
Hi together,

I have different OOo versions installed to test my little cute programm
using Java and UNO. One is my Debian default OOo in /usr/lib/openoffice,
the others are the OOo deb packages in /opt/openofficeX.X. How can I
tell my little program, to use an different OOo?

I added the loader classes to my jar and a manifest file looking like this:
-----%<----
Main-Class: com.sun.star.lib.loader.Loader
Name: com/sun/star/lib/loader/Loader.class

Application-Class: de.twc.oocom.OOCom
Application-Name: de/twc/oocom/OOCom.class
-----%<-----

A working manifest should be:
Main-Class: com.sun.star.lib.loader.Loader

Name: com/sun/star/lib/loader/Loader.class
Application-Class: de.twc.oocom.OOCom

With the Java property -Dcom.sun.star.lib.loader.unopath=<path_to_office_program_dir> can you specify an office installation that you would prefer. Otherwise the default office is used.

Ensure that you have added all class files coming with the SDK + the winreg.dll (to support windows as well) to your jar file.

com/sun/star/lib/loader/InstallationFinder.class
com/sun/star/lib/loader/Loader.class
com/sun/star/lib/loader/WinRegKey.class
com/sun/star/lib/loader/WinRegKeyException.class
com/sun/star/lib/loader/InstallationFinder$StreamGobbler.class
com/sun/star/lib/loader/Loader$CustomURLClassLoader.class
win/unowinreg.dll


Juergen

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to