service specific error code 1 is either port80 is being used or you have to configure java virtual machine in tomcat8w.exe in bin folder of tomcat in c:\progrmafiles or c:\ drive .Error code 4 is you have latest version of tomcat and error code 2 is path specific error. error code 2 set path correctly.