Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.
like image 340
Jonas Avatar asked Oct 18 '12 13:10

Jonas


Video Answer


2 Answers

  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!.

like image 197
shifu Avatar answered Sep 20 '22 03:09

shifu


I fixed this issue by editing glassfish3\glassfish\config\asenv.bat as described in domain1 not configured -- The system cannot find the path specified

then I got an error because no domains existed, that was solved by editing glassfish3\bin\asadmin.bat as described in Oracle Glassfish "There is no Domain" Issue Fix Solution

like image 27
Jonas Avatar answered Sep 17 '22 03:09

Jonas