Hi Tobias,
Tobias Krais wrote (15-5-2008 11:47)
I need to get the path of the unopkg or soffice executable in Java. Is
there a platform independent way to get it? Does an API exist for it?
No Java-info from me.
What I have in Basic might give a hint?
sService = "com.sun.star.deployment.PackageInformationProvider"
oPackageInfoProvider =
GetDefaultContext.getValueByName("/singletons/" + sService)
'you have to create an oxt with a description.xml and a unique
identifier
Dim sExtensionIdentifier$
'change this with your extension's identifier
sExtensionIdentifier = "nl.nouenoff.xxx.oxt" '
"org.openoffice.sdk.devguide.extensions.GenericOptionsPagesHandler"
Dim sPackageLocation$
sPackageLocation =
oPackageInfoProvider.getPackageLocation(sExtensionIdentifier)
Greetings,
Cor
--
"The Year of 3" -2008- "Het jaar van 3"
Cor Nouws
Arnhem - Netherlands - nl.OpenOffice.org - marketing contact
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]