# Installing and starting the service

To install the service, you run the service.bat file. You also must update the Tomcat monitor to point to the JVM.

Before you install the service, make sure you have updated the configuration.

Also, if you are not using the bundled JVM, then make sure that the JAVA_HOME environment variable is set to the location of your JDK. By default, service.bat looks for %JAVA_HOME%\jre\server\jvm.dll.

To install and start the Discovery Framework service:

1. From the command line, navigate to the Discovery Framework Tomcat bin directory. endeca_portal\tomcat-6.0.29\bin\
2. Run the following command: `service.bat install`
3. Configure the Tomcat monitor to point to the JVM:
   1. Double-click the monitor executable.
   2. On the properties dialog, click the Java tab.
   3. Uncheck Use default.
   4. In the Java Virtual Machine field, set the full path to jvm.dll. For the bundled JVM, the file is endeca-portal\tomcat-6.0.29\jre1.6.0_21\win\bin\server\jvm.dll. If you are not using the bundled JVM, then set the path to your JVM.
   5. Click OK.
4. When you install the service, it is set up to be started manually. To configure the service to start automatically:
   1. Display the Services list (Control Panel > Administrative Tools > Services).
   2. In the list, double-click the Discovery Framework service. The properties dialog for the service is displayed.
   3. From the Startup type drop-down, select Automatic.
   4. Click OK.
5. From the Services list, to start the service for the first time, right click the service, then click Start.