title: Create setenv.sh to set system property
body: <p>I have to use setenv.sh to set system properties. I am using Linux and Tomcat server 6.</p>
  
  <p>As described <a href="http://www.liferaysavvy.com/2012/09/setting-environment-variables-and.html" rel="nofollow noreferrer">here</a>, I have created a setenv.sh in tomcat/bin and the only thing I added is:</p>
  
  <pre>
  export JAVA_OPTS =”-Dmyprojectvar.subname=value -Danothervariable=value -Danother.variable=value”
  </pre>
  
  <p>I don't 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?</p>
  
  <p>I saw <a href="https://stackoverflow.com/questions/18697584/setenv-sh-is-not-working">this post</a> and there is answer given and I don't even understand the question. Do we need to set CATALINA_HOME and other properties somewhere in setenv.sh?.</p>