title: how to set java_opts in eclipse
body: <p>I need to set <code>JAVA_OPTS</code> in a development machine running windows 7 home edition and <code>tomcat 7 server</code>.  I am getting <code>permgen out of memory</code> error when running <code>spring-mvc</code> web applications from <code>eclipse</code>.  I want to enable <code>class</code> unloading so that memory gets freed up over the course of repeated reloading of web applications.  I also want to increase the amount of memory available.  </p>
  
  <p>Can someone show me explicitly how to do this, in step by step form?  </p>
  
  <p>Do I set a windows system environmental variable?  Do I run something from the command line?  What specifically will my commands look like in code?  </p>
  
  <p>Here is what I have so far (all on the same line):  </p>
  
  <pre><code>JAVA_OPTS=XX:MaxPermSize=128MXX:+CMSClassUnloadingEnabledXX:+CMSPermGenSweepingEnabledXms256m -Xmx512m 
  </code></pre>