Uninstallation of GlassFish Server may fail on Windows 7 systems because Windows cannot find the required JDK installation. The problem may occur when the Java binaries are not installed through a standard Java SDK installer.
Explicitly specify the location of the Java binaries when running the GlassFish Server uninstall utility from the command line. For example:
uninstall.exe -j "C:\Program Files\Java\jre6" |