Date: Tue, 11 Apr 2006 20:01:46 +0200 From: Jean-Baptiste Quenot <jbq@caraldi.com> To: java@freebsd.org Subject: Getting JAVA_HOME at runtime Message-ID: <20060411180145.GP53974@vision.anyware>
next in thread | raw e-mail | index | archive | help
Hello,
The Java ports infrastructure provides JAVA_HOME on build-time to
port's Makefile. But is it possible to get this variable from
/usr/local/bin/java at runtime?
How to change the Java version for a port at runtime in the rc
script? It is possible to set the preferred JDK in
/usr/local/etc/javavms but then JAVA_HOME still needs to be
set manually.
I would like to avoid hard-coding the JAVA_HOME at build time in
the rc scripts.
Any idea?
--
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?20060411180145.GP53974>
