Planning for Java CAPS Installation

Creating a Windows Service for Sun Java System Application Server

You can create a Window Service for the Sun Java System Application Server by using the Java CAPS Installer to run scripts that create a service after creating a successful installation.

To Create the Windows Service

C:\WINDOWS\system32\sc.exe create DOMAIN1 binPath=

"C:\JavaCAPS6\appserver\lib\appservService.exe

\"C:\JavaCAPS6\appserver\bin\asadmin.bat start-domain --user admin

--passwordfile C:\JavaCAPS6\appserver\passwordfile domain1\"

\"C:\JavaCAPS6\appserver\bin\asadmin.bat stop-domain domain1\""

start=auto DisplayName="SunJavaSystemAppServer DOMAIN1"

Contents of C:\JavaCAPS6\appserver\passwordfile:

AS_ADMIN_ADMINPASSWORD=adminadmin

AS_ADMIN_MASTERPASSWORD=changeit

AS_ADMIN_PASSWORD=adminadmin

The output is [SC] CreateService SUCCESS.

To Start, Stop, and Delete the Windows Service Using the Example