https://bz.apache.org/bugzilla/show_bug.cgi?id=66056
Bug ID: 66056 Summary: Enable Tomcat to support variables with spaces when defining environment variables _RUNJAVA and _RUNJDB (Windows) Product: Tomcat 10 Version: 10.0.14 Hardware: Other Status: NEW Severity: enhancement Priority: P2 Component: Util Assignee: dev@tomcat.apache.org Reporter: 1781891...@qq.com Target Milestone: ------ In Windows os, when var _RUNJAVA and _RUNJDB with spaces is defined in the environment variable, the click script startup.bat will fail to run Tomcat. Now this situation can be improved by modifying whether the quotation marks exist. The version I used is 10.0.14, and it seems that this situation also exists in version 10.0.20 The specific method is (version 10.0.14): In setclasspath.bat file: Line 79:change <set _RUNJAVA="%JRE_ HOME%\bin\java.exe"> to <set _RUNJAVA=%JRE_ HOME%\bin\java.exe> Line 85: change <set _RUNJDB="%JAVA_ HOME%\bin\jdb.exe"> to <set _RUNJDB=%JAVA_ HOME%\bin\jdb.exe> That is, remove their quotation marks In catalina.bat file: 261 line:change <set_ EXECJAVA=%_RUNJAVA% d to set _EXECJAVA="%_RUNJAVA%" 327 line:change <set _EXECJAVA=start "%TITLE%" %_RUNJAVA%> to <set _EXECJAVA=start "%TITLE%" "%_RUNJAVA%"> That is, add their quotation marks Of course,I just tested several simple cases. If there are other problems, I look forward to your modification. I have a project about management in progress, so if you have other modification suggestions, I hope you can reply to me by email, which is important to the project. -- 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