실행 가능한 jar 파일이 있는데 sc.exe를 사용하여 Windows 서비스를 만들려고했습니다. 나는 서비스를 만들기위한 아래의 코드를 사용 :Java jars를 Windows 서비스로 실행
sc create "TestService" binPath= "C:\Program Files\Java\jdk1.6.0_03\jre\bin\java.exe -jar C:\abc\MainClass.jar"
서비스가 생성하지만 서비스를 시작하려고 할 때 나는 아래의 오류 가지고있어 :
Error 1053: The service did not respond to the start or control request in a timely fashion.
나중에 내가 자바 서비스 래퍼를 사용하려고를 (Community Edition), 서비스는 얼마 동안 시작되지만 매번 중지됩니다.
Advice:
The Wrapper consists of a native component as well as a set of classes
which run within the JVM that it launches. The Java component of the
Wrapper must be initialized promptly after the JVM is launched or the
Wrapper will timeout, as just happened. Most likely the main class
specified in the Wrapper configuration file is not correctly initializing
the Wrapper classes:
com.MainClass
While it is possible to do so manually, the Wrapper ships with helper
classes to make this initialization processes automatic.
Please review the integration section of the Wrapper's documentation
for the various methods which can be employed to launch an application
within the Wrapper
사람이 내가 고객의 찌르다 ENV에 제 3 자 응용 프로그램을 사용할 수 없기 때문에 외부 소프트웨어를 사용하지 않고 Windows 서비스로 항아리를 실행할 수있는 방법을 말해 주 시겠어요 : 래퍼 로그 같은 것을 알려줍니다.
Java Service Wrapper에서 수행해야하는 다른 구성이 아닌 경우 서비스를 시작하십시오.
stackoverflow에서 이와 관련된 정보를 찾으려고했지만 아무 것도 얻지 못했습니다. stackoverflow에 아무 것도 있으면 주석에 넣어 주시기 바랍니다.