Using Java find installation directory of an application?

一世执手 提交于 2019-12-11 06:58:12

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/6250034/using-java-find-installation-directory-of-an-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!