Installation and Upgrade Guides › Web Agent Installation Guide › Uninstall a Web Agent › Set JRE in PATH Variable Before Uninstalling the Web Agent
Set JRE in PATH Variable Before Uninstalling the Web Agent
On Windows and UNIX systems, when you are uninstalling the Web Agent, make sure the JRE is in the PATH variable or the uninstallation program stops and issues one of the following error messages:
- "Could not find a valid Java virtual machine to load. You need to reinstall a supported Java virtual machine."
- "No Java virtual machine could be found from your PATH environment variable. You must install a VM prior to running this program."
To set the JRE in the PATH variable:
On Windows
- Go to the Control Panel.
- Double-click System.
- In the Environment Variables dialog, add the location of the JRE to the PATH system variable.
For example, C:\j2sdk1.5.0_01\jre\bin
On Solaris
Run these two commands:
- PATH=$PATH:JRE/bin
where JRE is the location of your JRE.
For example, /usr/bin/j2sdk1.5.0_01/jre
- export PATH