Is there an similar property like System.getProperty(‘java.home’) that will return the JDK directory instead of the JRE directory? I’ve looked https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/System.html#getProperties() and there doesn’t seem to be anything for the JDK.
Is there an similar property like System.getProperty(java.home) that will return the JDK directory instead
Share
One route would be to set a system environment variable like ‘JAVA_HOME’ and use that.
It may not be the best solution, but it would work, and this is what other apps which require JDK rather than JRE (like CruiseControl) require you to do when you set them up.