users@glassfish.java.net

Why can't asadmin check for JAVA_HOME?

From: Ryan Shoemaker - JavaSoft East <Ryan.Shoemaker_at_Sun.COM>
Date: Wed, 07 Feb 2007 15:14:00 -0500

I really don't understand why the asadmin scripts are
hard coded to launch java from a location cached during
installation rather than trying to use JAVA_HOME first.
Can anyone shed some light on this?

asadmin runs "$AS_JAVA/bin/java" and AS_JAVA is hard
coded to whatever $JAVA_HOME happened to be when you ran
"ant -f setup". If you install a new version of java and
assume that the GF scripts are smart enough to check
JAVA_HOME, then you will probably waste time trying to
figure out why your code still isn't working like I did.

--Ryan