Java examples for Native OS:Environment
Returns JRE home.
// Copyright (c) 2003-present, Jodd Team (jodd.org). All Rights Reserved. //package com.java2s; public class Main { public static final String JAVA_HOME = "java.home"; /**/* w w w. ja v a 2s . com*/ * Returns JRE home. */ public static String getJavaJreHome() { return System.getProperty(JAVA_HOME); } }