Returns JRE home. - Java Native OS

Java examples for Native OS:Environment

Description

Returns JRE home.

Demo Code

// 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);
    }
}

Related Tutorials