Getting JAVA_HOME at runtime
Jean-Baptiste Quenot
jbq at caraldi.com
Wed Apr 12 18:00:30 UTC 2006
* 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/
More information about the freebsd-java
mailing list