Get path to java JRE
-
It it possible to get the location of the jre that is used for the current process. Need to launch an other java application as a separate process. Having different jre's available (and no path variable set) I would like ask eg. the loader for this. Running on Solaris, Linux, Windows.
-
Answer:
You can use: System.getProperty("java.home") http://download.oracle.com/javase/6/docs/api/java/lang/System.html#getProperties%28%29 says: java.home: Java installation directory
owan at Stack Overflow Visit the source
Other answers
System.getProperty("java.home")
hilal
Related Q & A:
- Where To Get Best AntiVirus For Java Mobile?Best solution by antivirus.com
- How do I do a HTTP GET in Java (android?Best solution by Stack Overflow
- How to get output on screen with java?Best solution by Stack Overflow
- How to get actual return type of a generic static method in Java?Best solution by stackoverflow.com
- How to get real path of an image in Java?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.