https://bz.apache.org/bugzilla/show_bug.cgi?id=64645
Bug ID: 64645 Summary: bin/service.bat doesn't handle wrongly configured JAVA_HOME Product: Tomcat 9 Version: 9.0.x Hardware: PC Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: jakub.mora...@getmanta.com Target Milestone: ----- This seems to be similar to https://bz.apache.org/bugzilla/show_bug.cgi?id=49993, maybe the validation just needs to be enhanced. Hello, this is my first ticket in Apache Bugzilla, please bear with me. We found out, that if JAVA_HOME is wrongly configured (for example if it points to JRE instead of JDK), the service.bat script won't fail, will skip to and return exit code 0. This is misleading, as the service was not installed because of wrongly set-up JAVA_HOME. Is it possible to provide better validation and make sure, that the exit code is not 0 in case the installation of the service fails? I believe that swallowing of exceptions is not a good approach ;) Thanks! -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org