Create setenv.sh to set system property

Posted by user3475398 on Server Fault See other posts from Server Fault or by user3475398
Published on 2014-05-28T07:41:29Z Indexed on 2014/05/28 9:31 UTC
Read the original article Hit count: 203

Filed under:
|
|
|

I have to use setenv.sh to set system properties.
I am using Linux OS and Tomcat Server 6.
As described here Linux Environment- setenv.sh , I have created a setenv.sh in tomcat/bin, and the only think I added is the

export JAVA_OPTS =”-Dmyprojectvar.subname=value -Danothervariable=value -Danother.variable=value”

I dont know, is this enough to set the properties. I just want to add three properties to tomcat as system property using setenv.sh. What should I do to complete it successfully? What are the steps for it?
I saw this question setenv.sh is not working in http://stackoverflow.com/. No is answer given there and ,even ,I don't understand the question. ie, Do we need to set CATALINA_HOME and other properties somewhere in setenv.sh?.

© Server Fault or respective owner

Related posts about linux

Related posts about tomcat