Please see discussion at http://lists.freebsd.org/pipermail/freebsd-java/2006-April/005152.html The Java ports infrastructure provides ${JAVA_HOME} and ${JAVA} on build-time to a port's Makefile, but it would be great to set the Java version requirement on a per-port basis in the rc flags. This requires to get JAVA_HOME and java executable path from javavmwrapper at runtime. The idea is to make javavm recognize two special environment variables: JAVAVM_PRINT_JAVA_HOME When set, find the best suitable JVM and print the corresponding value of JAVA_HOME instead of executing the java program JAVAVM_PRINT_JAVA_PROGRAM When set, find the best suitable JVM and print the path of the Java program instead of executing it For this to work correctly, we need javavm to stop upon failure. Until now, when the java program cannot be exec-uted, javavm issues a warning and goes on to the next JVM. Thanks in advance!
Responsible Changed From-To: freebsd-ports-bugs->glewis Over to maintainer
State Changed From-To: open->closed Thanks for the ideas. I've implemented them in a different way using a single variable (JAVAVM_DRYRUN). You should still be able to get the information you need (and more). An example of extracting it is in the javavm manual page.