How do I find installation directory of OpenOffice using Java Code? I want to run it as a service when a user uses my application.
Asked
Active
Viewed 940 times
1
-
Why do you want to run OO as a service? Are you just launching OO files for view/edit? – Andrew Thompson Jun 06 '11 at 11:27
-
Na i want to use it to convert oFfice files to pDF – Harinder Jun 06 '11 at 11:57
1 Answers
2
There is no portable solution to this.
On Windows you can search the registry; see read/write to Windows Registry using Java.
On Linux / UNIX, you can search the default installation directories, though these may vary from one distribution to the next.