On Dec 10, 2012, at 6:14 PM, Raf Roger wrote: > Hi, > > i need to setup CATALINA_OPTS environment variable under windows 7. > I read that in directory *tomcatDir/bin/* should be a file named setenv.bat > for Windows in which i could define the CATALINA_OPTS environment variable. > > However after a fresh installation of Tomcat 7.0.33 i discovered that such > file doesn't exist. > is it normal ?
This is normal and intentional. > > can i just create it ? Yes, you should create the file. > what should i take care to make it correctly ? You can use any text editor to create the file. Make sure that it is syntactically a valid Window batch script. Most of the time, you would just set environment variables in this file. For example: set JAVA_HOME=C:\path\to\java\home set CATALINA_OPTS=-Xmx2G -Xss256k As a note, you only want to use the setenv.bat file if you are running Tomcat from the console (something that is done rarely). In most cases, you'll be running as a Windows Service. If you are running as a Windows Service then you don't want to use setenv.bat. Instead, you'll want to use the Tomcat GUI application to make configuration changes. https://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html#Tomcat7w_monitor_application https://wiki.apache.org/tomcat/FAQ/Windows#Q11 Dan > thx. > > -- > Alain > ----------------------------------------------------------- > Windows 7 x64 / Fedora 17 x64 > MySQL 5.5.28 > Apache 2.4.3 / OpenSSL 1.0.1c > Tomcat 7.17 > PHP 5.4.8 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org