Installazione e aggiornamento > Installation and Configuration Guide > Advanced Configurations > Running Windchill as a Windows Service
  
Running Windchill as a Windows Service
Execute the following command to configure Windchill to run as a Windows service. The service is automatically started when the command is executed.
From a Windchill shell, enter:
ant -buildfile <Windchill>\opt\ntservice\WindchillService.xml install
-DserviceName=<ServiceName>
Where <ServiceName> is a unique name to reference this service (e.g., WTService).
You can now manage (e.g., start and stop) Windchill from the Windows Services utility. It is listed in the utility under the name (i.e., <ServiceName>) that you provided in the above command.
Points to Consider When Running a Windows Service
The following items are points that should be considered when running an application as a Windows service:
The environment that supports a running service is different than the environment in which a service was launched from a console window.
A service running under the default system account is not able to access the shared network resources. You must modify the permissions to allow access to the shared network resources.
The server launchers require a formally installed JDK in order to run. Formally installed means the JDK was installed with JDK installer.
Troubleshooting Tips
If the “JNI error finding main class” or “Unable to change the working directory” messages are displayed in the Windows Event Viewer, then try the following:
Verify your CLASSPATH settings to ensure it is correct. If a directory contains spaces, enclose the directory path in quotes.
Removing Windchill as a Windows Service
To remove Windchill as a service, execute the following command from a Windchill shell:
ant -buildfile <Windchill>\opt\ntservice\WindchillService.xml uninstall
-DserviceName=<ServiceName>
Where <ServiceName> is the name you gave the Windchill Windows service when you created it.