How to determine $JDK_HOME ?
Colin Walters
walters at verbum.org
Sun Dec 7 20:12:39 UTC 2008
On Sun, Dec 7, 2008 at 3:05 PM, Peter Lemenkov <lemenkov at gmail.com> wrote:
> In any case how can I pass JDK
> home to buildscripts w/o ugly %ifarch/else?
First, try to make scripts not reliant on the presence of the
JAVA_HOME environment variable. It should be enough to simply invoke
"java" to get a JVM.
However, if you need it, simply wrap invocations to the scripts with
JAVA_HOME=/etc/alternatives/jre
which uses the alternatives system to point to the system-preferred JRE.
More information about the fedora-devel-list
mailing list