title: Running java with JAVA_OPTS env variable has no effect
body: <p>In a shell script, I have set the JAVA_OPTS environment variable (to enable remote debugging and increase memory), and then I execute the jar file as follows:</p>
  
  <pre><code>export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n -Xms512m -Xmx512m"
  java -jar analyse.jar $*
  </code></pre>
  
  <p>But it seems there is no effect of the JAVA_OPTS env variable as I cannot connect to remote-debugging and I see no change in memory for the JVM.</p>
  
  <p>What could be the problem?</p>
  
  <p>PS: I cannot use those settings in the <code>java -jar analyse.jar $*</code> command because I process command line arguments in the application. </p>