"The system cannot find the path specified." error message when trying to start GlassFish with asadmin

Jonas picture Jonas · Oct 18, 2012 · Viewed 23.9k times · Source

I tried to follow The Java EE 6 Tutorial and start GlassFish with the command below. But I got an error message. How to solve this?

C:\glassfish3\bin>asadmin start-domain --verbose
The system cannot find the path specified.

Answer

shifu picture shifu · Jan 25, 2013
  1. Go to asenv.bat file in config directory
  2. remove line set AS_JAVA="C:/Program Files(x86)/Java/"
  3. retry asadmin.

It will work this time!.