Sun GlassFish Enterprise Server 2.1 Troubleshooting Guide

Error: System cannot find the path specified

Description

This error message occurs when attempting to start the server after deleting the J2SE directory that was specified during installation. This situation generally occurs after being informed during the install that the J2SE platform needs an upgrade, and the upgrade takes place after the Enterprise Server installation.

Solution 1

To use the new J2SE for all domains, change the AS_JAVA variable in asenv.conf (Solaris/Linux), or asenv.bat (Windows).

Solution 2

The J2SE version can be changed on a per-domain basis by modifying the java-home attribute for the java-config element in the domain’s domain.xml file.

<java-config ...
java-home="path"
...\>

Solution 3

A more time-intensive solution is to uninstall and then reinstall the server.