- Install GlassFish Server 4.0
- Run Command Line window as administrator
- Type
cd <GlassFish_Home>/bin
asadmin create-domain <domain_name>
asadmin delete-domain <domain_name>
asadmin start-domain <domain_name>
asadmin stop-domain <domain_name>
asadmin change-admin-password
asadmin enable-secure-admin
asadmin disable-secure-admin
It will create <domain_name>Service.exe under <GlassFish_Home>/domains/<domain_name>/bin directory
asadmin create-service <domain_name>
<domain_name>Service.exe start
<domain_name>Service.exe stop
<domain_name>Service.exe restart
<domain_name>Service.exe uninstall
<domain_name>Service.exe install
<domain_name>Service.exe status