title: how to set location of jvm crash log files
body: <p>I need to configure where the jvm crash logs are created. I like the name they have (hs_err_pid.log) but I want them created in an specific folder.</p>
  
  <p>In <a href="http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html" rel="noreferrer">here</a> you can see that you can use the </p>
  
  <pre><code>-XX:ErrorFile=./hs_err_pid&lt;pid&gt;.log
  </code></pre>
  
  <p>param to set the FILE created, but if you set this to a folder, so the file is created in that folder with the original naming convention, it does not work, it is ignored.</p>
  
  <p>I have been testing this by crashing jvm 1.6 from <a href="https://stackoverflow.com/questions/65200/how-do-you-crash-a-jvm">this questions</a>, using this:
  PathDasher dasher = new PathDasher(null) ;</p>
  
  <p>Anybody knows a way to achieve this?</p>