The system cannot find the path specified.
When Glassfish is installed it hard-codes its reference to your JDK location. To fix this problem I ended up having to edit a file named asenv.conf (asenv.bat in Windows). The file is located at: /usr/local/glassfish/config/ (C:\glassfish\config\ in Windows).
I 'vi'd into the file and changed the AS_JAVA attribute to my new JDK location;
vi /usr/local/glassfish/config/asenv.conf
AS_JAVA="/usr/java/jdk1.4/"
In Windows you could use these commands to comment out the old reference and add the new one;
REM set AS_JAVA=C:\Program Files\Java\jdk1.6.0_24\jre/..
set AS_JAVA=C:\Program Files\Java\jdk1.4