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

Reply via email to