My Tomcat is 7.0 on Windows7 64bit.
Steps :
- Go To Tomcat installed directory and open
/bin
directory - Open
catalina.bat
with notepad, and addSET "JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=Your Personal Host -Dhttp.proxyPort=Your Personal Port"
, remember replacing the host and port as your own. - OK!
such as :
if not "%LOGGING_CONFIG%" == "" goto noJuliConfig
set LOGGING_CONFIG=-Dnop
if not exist "%CATALINA_BASE%\conf\logging.properties" goto noJuliConfig
set LOGGING_CONFIG=-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
:noJuliConfig
set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%"
SET "JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=9999"