The Problem
If you upgrade or otherwise modify your JDK/JVM/JRE installation (such as upgarding to a new version or changing your directory structure) when you have a GlassFish installation running you may find that GlassFish will no longer start after you reboot the server, even if you update your JAVA_HOME environment variable accordingly...
The Solution
You will need to update the envionrment variables stored in the asenv.bat file associated with GlassFish. This file is typically located at
<glassfish-install-dir>/config/asenv.bat
Locate the line starting with
set AS_JAVA=<old-jvm-dir>/..
and enter the dir of your new JVM/JDK/JRE installation, not forgetting to include the "/.." at the end of the path. For example my value is
set AS_JAVA=D:\Java\jdk1.6.0_16\jre/..
I hope this helps, and if it does please let me know!!
Daniel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Daniel Bryant (Director) | Tai-Dev Ltd www.tai-dev.co.uk - IT Consultancy Services Specialising in JEE, Web 2.0 and RDBMS

