As reported here: http://marc.info/?l=tomcat-dev&m=144668952212845&w=2 The documentationshould use "^" instead of "\" and use the correct continuation prompt (or none). https://github.com/apache/tomcat/blob/trunk/webapps/docs/windows-service-howto.xml#L363 The doc is wrong on the main tomcat site and the comments pointing this out are quite old. This is why I filed an additional bug even if there is no documentation/site category here. Sorry for thatby my tomcat-dev mail was also unresponded. The above post does contain a proposed diff.
Thanks for the report. This as been fixed in 9.0.x for 9.0.0.M1 onwards, 8.0.x for 8.0.30 onwards, 7.0.x for 7.0.66 onwards and 6.0.x for 6.0.45 onwards.