title: Not able to print GC details
body: <p>I am trying to print the GC details for a test program in eclipse.I want to set it only for my program so I went to Run>Run Configurations and in VM arguments gave this:</p>
  
  <pre><code>-Xms1024M -Xmx1024M    –XX:+PrintGCDetails  –XX:+PrintGCTimeStamps
  </code></pre>
  
  <p>However when I do this and run my program I get the following error:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: –XX:+PrintGCDetails
  Caused by: java.lang.ClassNotFoundException: –XX:+PrintGCDetails
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
  </code></pre>
  
  <p>What am I doing wrong in passing the arguments.</p>