system-variable

Environment/system variables in server.xml

一曲冷凌霜 提交于 2019-11-27 03:54:16
问题 How can I use environment/system variables in tomcat server.xml, context.xml, etc configuration files? I tried to use ${ENV_VAR_NAME} (both for environment and system variable), ${env.ENV_VAR_NAME} (for environment variables). And nothing seems to work. 回答1: How it's realized in my box. Bash-script for startup: #!/bin/sh SMEMORY=1G XMEMORY=1G if [ $ENV == DEV ]; then port_shutdown="8005" port_http="8080" port_https="8443" elif [ $ENV == SIT ]; then port_shutdown="8006" port_http="8081" port

How to set java_home on Windows 7?

拈花ヽ惹草 提交于 2019-11-25 21:43:58
问题 I went to the Environment Variables in \'System\' in the control panel and made two new variables, one for user variables and one for system variables. Both were named JAVA_HOME and both pointing to C:\\Sun\\SDK\\jdk\\bin But for some reason, I still get the below error when running a Java command... BUILD FAILED C:\\Users\\Derek\\Desktop\\eclipse\\eclipse\\glassfish\\setup.xml:161: The following error occurred while executing this line: C:\\Users\\Derek\\Desktop\\eclipse\\eclipse\\glassfish\