Wednesday, May 23, 2012

The input line is too long - during installing windows service

Error: The input line is too long - during installing windows service.

Desc: MS Windows 32bit has 2K limitation on the length of the command line. If the classpath setting in the " installSvc.cmd " is very long, the 2K limitation could be exceeded. Consequently the set up of the MS Windows Service may fail with the error.

Soln: Start the jvm in the command prompt and copy the classpath from startup log.
Place the classpath in a seperate .txt file and provide complete access to it.
now call the file in the installsvc file.
by replacing -classpath \"%CLASSPATH%\" option with the following option:
-classpath @pathname\filename

 Ex:JAVA_OPTIONS% -classpath @C:\classpath.txt -Dweblogic.Name 

ref: http://docs.oracle.com/cd/E17904_01/web.1111/e13708/winservice.htm#i1188175


No comments: