Hello all,
I'm trying to store the classpath and one java option (-Djava.library.path)
via the UNO API in OOo...
I've found a nice Java example that works fine
(sdk/examples/DevelopersGuide/Config).
I set the necessary values directly in soffice. After setting the values I
expected to so see the values via the java example. But I don't know whether
the nodepath has the right value.
Settings in OOo:
extras -> options -> java -> parameters AND classpath.
When setting this options it's not necessary to install my jdbc drivers in the
system strcuture...
I'm using the follow string as nodepath:
"org.openoffice.Office.Java/"
Two nodes are in there (Install and VirtualMachine).
I set this path in the example (printRegisteredFilters()), but I can't see my
values...
There are two interessting options: UserClassPath and JavaLibPath.
(some more values under node "Install")
Some config nodes was printed out with the following string:
"Any[Type[void],null]".
Are the ConfigurationProvider and friends the right way to store
my java setting values in OOo?
The second chance to do this may be to write an xml file in
~/.openoffice.org2.0/user/config/javasettings.xml.
The "Config" example seems a complete one, so I begin to translate it to C++,
but I don't know whether I used the right nodepath...
Here is the output from the modified example:
---------- snip ---------------------
Starting examples.
--- starting example: browse filter configuration ------------------
Value: /org.openoffice.Office.Java/Install/AdditionalClasspath = ()
Value: /org.openoffice.Office.Java/Install/AdditionalSearchPath = ()
Value: /org.openoffice.Office.Java/Install/ExcludeVersion = ()
Value: /org.openoffice.Office.Java/Install/InstallationPackage = ()
Value: /org.openoffice.Office.Java/Install/PackageInstallationDirectory = ()
Value: /org.openoffice.Office.Java/Install/RequiredVersion = ()
Value: /org.openoffice.Office.Java/Install/Vendor = ()
Value: /org.openoffice.Office.Java/Install/VerifiedVersion = ()
Value: /org.openoffice.Office.Java/Install/Version = ()
Value: /org.openoffice.Office.Java/VirtualMachine/Debug =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/DebugPort =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/DisableAsyncGC =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/Enable = (true)
Value: /org.openoffice.Office.Java/VirtualMachine/EnableClassGC =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/EnableVerboseGC =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/EnvironmentType =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/Home = (NULL)
Value: /org.openoffice.Office.Java/VirtualMachine/JavaLibPath = ()
Value: /org.openoffice.Office.Java/VirtualMachine/JavaStackSize =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/MaxHeapSize =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/MinHeapSize =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/NativeStackSize =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/NetAccess =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/Properties =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/RunTimeLib = ()
Value: /org.openoffice.Office.Java/VirtualMachine/Security = (true)
Value: /org.openoffice.Office.Java/VirtualMachine/SystemClassPath = ()
Value: /org.openoffice.Office.Java/VirtualMachine/UserClassPath = ()
Value: /org.openoffice.Office.Java/VirtualMachine/VMType =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/Verbose =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/VerifyMode =
(Any[Type[void], null])
Value: /org.openoffice.Office.Java/VirtualMachine/Version = (NULL)
All Examples completed.
-------------------------------
Best regards
Andre
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]