Date: Wed, 12 Apr 2006 20:00:28 +0200 From: Jean-Baptiste Quenot <jbq@caraldi.com> To: java@freebsd.org Subject: Re: Getting JAVA_HOME at runtime Message-ID: <20060412180028.GB29790@vision.anyware> In-Reply-To: <20060411222343.GA55418@arabica.esil.univ-mrs.fr> References: <20060411180145.GP53974@vision.anyware> <20060411222343.GA55418@arabica.esil.univ-mrs.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
* Herve Quiroz:
> In /usr/local/bin/javavm, line 447:
>
> export JAVA_HOME
> tryJavaCommand "${JAVA_HOME}/bin/${IAM}" "${@}"
>
> So indeed, JAVA_HOME is set accordingly to the JVM picked up by the
> script.
>
> That's how the launcher shell script works for devel/maven2 for example.
OK, but imagine that the target application has a shell script
that needs JAVA_HOME. There are plenty of programs that are based
on JAVA_HOME instead of the java binary.
How to get the preferred JAVA_HOME?
--
Jean-Baptiste Quenot
aka John Banana Qwerty
http://caraldi.com/jbq/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060412180028.GB29790>
