Package org.rzo.yajsw.os.posix

Source Code of org.rzo.yajsw.os.posix.PosixJavaHome

package org.rzo.yajsw.os.posix;

import org.apache.commons.configuration.BaseConfiguration;
import org.apache.commons.configuration.Configuration;
import org.rzo.yajsw.os.JavaHome;

public class PosixJavaHome implements JavaHome
{
  Configuration  _config;

  public PosixJavaHome(Configuration config)
  {
    if (config != null)
      _config = config;
    else
      _config = new BaseConfiguration();
  }

  public String findJava()
  {
    // find / -name java
    // TODO
    return _config.getString("wrapper.java.command", "java");
  }

}
TOP

Related Classes of org.rzo.yajsw.os.posix.PosixJavaHome

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.