>
> set JAVA_HOME="%JAVA_HOME:"=%"

This line removes all the quotes from the value of JAVA_HOME and then  
surrounds it with quotes. This is what makes our scripts work.
However before we do a call to a 3rd Party script, we remove the  
quotes from some environment variables (often this includes JAVA_HOME)

Anyway, don't change the line above, I'll work with you to make your  
script work.

For reference, on scripts that work with existing Tomcat  
installations, look into the tools/sessions/configurator-sandbox  
directory of a TC installation - and look into the start.bat script of  
any of the tomcatx.x directories (except tomcat5.5, which assumes  
tomcat is installed in the vendors directory of your TC installation)

On Apr 9, 2008, at 1:28 AM, Geert Bevin wrote:
> Hi,
>
> I've been trying to get Terracotta to work easily on Windows with an
> existing Tomcat installation. For that I create a setenv.bat file in
> the bin dir with these instructions:
>
> set TC_INSTALL_DIR="C:\terracotta-2.7.0-snapshot"
> set TC_CONFIG_PATH="localhost:9510"
> call %TC_INSTALL_DIR%\bin\dso-env.bat -q
> set JAVA_OPTS=%TC_JAVA_OPTS% %JAVA_OPTS%
>
> With this, Tomcat fails to startup due to an error while running their
> setclasspath.bat file.
>
> I tracked this down to our boot-jar-path.bat script that always
> surrounds an existing JAVA_HOME env variable with double quotes. This
> causes the line
>
> if not "%JAVA_HOME%" == "" goto gotJdkHome
>
> to fail in setclasspath.bat.
>
> Any thoughts? I'm really a novice with windows batch scripts, so I'd
> appreciate some help here. Personally, I'd remove the following line
> from boot-jar-path.bat:
>
> set JAVA_HOME="%JAVA_HOME:"=%"
>
> ... and then adapt the commands that use JAVA_HOME or any derived
> variables to have double quotes.
>
> Thanks,
>
> Geert
>
> -- 
> Geert Bevin
> Terracotta - http://www.terracotta.org
> Uwyn "Use what you need" - http://uwyn.com
> RIFE Java application framework - http://rifers.org
> Music and words - http://gbevin.com
> _______________________________________________
> tc-dev mailing list
> [email protected]
> http://lists.terracotta.org/mailman/listinfo/tc-dev

_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to