There is no way to programmatically retrieve the path to the runtime. You should not use the javarc (OOo1.1) or javasettings_xyz.xml (OOo2.0) because there are an implementation detail and may change without notice. In OOo2 there is a way to obtain information about the currently selected JRE through a C API (jvmfwk/framework.h). The information contains among other things the vendor name, version, and path to the JRE installation.
Regards, Joachim Lingner
Marc Santhoff wrote:
Am Mo, den 16.05.2005 schrieb Didier Dorange-Pattoret um 23:20:
Hello,
Is it possible to get the path of the java runtime file with a macro ?
On my installation it lives there:
~/OpenOffice.org1.1/user/config/javarc
<snip> [Java] Home=file:///usr/local/jdk1.4.2 </snip>
Maybe there is a UCB provider for windows style ini files?
If not, maybe the configuration manager knows, too?
At last you can open it with a css.ucb.SimpleFileAccess and search the line starting with "Home" in the section "[Java]" yourself.
HTH, Marc
--------------------------------------------------------------------- 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]
