Which version of GlassFish is this? Please refer to the corresponding release notes for supported version of jdk.
Yes, changing product wide configuration file, asenv.conf is sufficient to point to any valid/supported JDK.
HTH
Sathyan
[Message sent by forum member 'scatari' (scatari)]
http://forums.java.net/jive/thread.jspa?messageID=361006