https://bz.apache.org/bugzilla/show_bug.cgi?id=66829
Bug ID: 66829
Summary: setclasspath.bat: troubles when _RUNJAVA contains
spaces
Product: Tomcat 11
Version: unspecified
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -------
Catalina.bat permits me to set the environment variable _RUNJAVA before calling
«catalina.bat start». If the variable value contains space, e.g. is from WSL
export _RUNJAVA=\"C:\\Program\ Files\
\(x86\)\\Java\\jdk1.8.0_361\\bin\\java.exe\"; export WSL=_RUNJAVA ; cmd.exe /c
'catalina.bat start'
then the output it
Files was unexpected at this time.
“Files“ is from “Program Files”. In I replace in setclasspath.bat
> if not "%_RUNJAVA%" == "" goto gotRunJava
with
> if not defined %_RUNJAVA% goto gotRunJava
then the problem disappears.
Yes, Java 8 does not run with Tomcat 11. But this problem actually appears with
Tomcat 9 and setclasspath.bat has not changed between Tomcat 9 and Tomcat 10.1.
• In bin/setclasspath.bat replace «if not "%_RUNJAVA%" == "" goto gotRunJava»
with «if not defined %_RUNJAVA% goto gotRunJava».
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]