[Solved] Getting the selected JRE path from Open Office
[Solved] Getting the selected JRE path from Open Office
I do not want to install Java or JRE in the project that creates my open office calc project heavy to execute and is difficult to run on any OS with jars attached. Hence, I want to know the way to extract the path of jre selected in Open Office(Tools>Options>OpenOffice>Java) in any OS where my OXT file is installed via java. I am using UNO package for it.
Last edited by RoryOF on Sat May 28, 2016 9:01 pm, edited 2 times in total.
Reason: Added [Solved]. [RoryOF, Moderator]
Reason: Added [Solved]. [RoryOF, Moderator]
open office 4.1.2
Ubuntu
Ubuntu
Re: Getting the selected JRE path from Open Office
This is not an immediate answer, but it may help you. On a linux machine the Java path is stored in
/home/<UserName>/.openoffice/4/user/config/javasettings_Linux_X86_64.xml
As this is a plain text file extraction of the path should be simple. I have not found (not exhaustive search) an API routine to return the Java path, but there may be one.
/home/<UserName>/.openoffice/4/user/config/javasettings_Linux_X86_64.xml
As this is a plain text file extraction of the path should be simple. I have not found (not exhaustive search) an API routine to return the Java path, but there may be one.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
-
- Posts: 1
- Joined: Wed May 04, 2016 7:45 pm
Re: Getting the selected JRE path from Open Office
Can't find an API routine as well....Any help?
OpenOffice Windows Vista neooffice 2.2.3 ?? MacOS 10.4 / OpenOffice 2.4 ???? Ubuntu 9.04
Re: Getting the selected JRE path from Open Office
As long as you don't use add-in functions written in Java, the spreadsheet functionality does not depend on any Java code. Apart from one or two seconds on first start, disabling Java won't yield any gains in performance. However, you may be able to get massive performance improvements by using a Java database to store data and dump selected records into your spreadsheet application.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: Getting the selected JRE path from Open Office
The solution will probably be to access the file I named (or its local equivalent if a different operating system) and extract the information. This should be a simple task in any language.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Getting the selected JRE path from Open Office
Hey, I think this suits my needs, I can use this file to get the JRE path in Linux. I need to check for different OS that works in similar condition. Thanks to you "RoryOF".RoryOF wrote:This is not an immediate answer, but it may help you. On a linux machine the Java path is stored in
/home/<UserName>/.openoffice/4/user/config/javasettings_Linux_X86_64.xml
As this is a plain text file extraction of the path should be simple. I have not found (not exhaustive search) an API routine to return the Java path, but there may be one.
open office 4.1.2
Ubuntu
Ubuntu
Re: Getting the selected JRE path from Open Office
I am using Java as development language and working on Apache Open Office project( OXT is being used in Open Office), hence Java is required.Villeroy wrote:As long as you don't use add-in functions written in Java, the spreadsheet functionality does not depend on any Java code. Apart from one or two seconds on first start, disabling Java won't yield any gains in performance. However, you may be able to get massive performance improvements by using a Java database to store data and dump selected records into your spreadsheet application.
open office 4.1.2
Ubuntu
Ubuntu
Re: Getting the selected JRE path from Open Office
I need to know the similar way path to file quoted by "RoryOF" for Windows, I am not able to find that directory that might be containing the JRE path selected in Open Office (Tools>Options>OpenOffice>Java).
open office 4.1.2
Ubuntu
Ubuntu
Re: Getting the selected JRE path from Open Office
Outside of OpenOffice bore down through your OpenOffice User Profile until you start to match the path I quoted, probably at the user folder.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Getting the selected JRE path from Open Office
Thank you, I found it.RoryOF wrote:Outside of OpenOffice bore down through your OpenOffice User Profile until you start to match the path I quoted, probably at the user folder.
open office 4.1.2
Ubuntu
Ubuntu