I edited bin/asadmin, and changed the JAVA= variable to use the full path to my JDK.
Alternatively, setting AS_JAVA in glassfish/config/asenv.conf should also work and is probably more correct.
Richard
[Message sent by forum member 'richardss']
http://forums.java.net/jive/thread.jspa?messageID=393457