title: Setting locale only on local machine JVM
body: <p>I need to change my Java locale to another language system-wide for work purposes, but there seems to be no easy way to do it by default. I do development for CJK applications, but changing my actual system locale to match also renames my home folders, meaning if my input method decides to stop working I would have to reboot my entire system.</p>
  
  <p>I've tried setting JVM arguments (<code>-Duser.language=ja -Duser.locale=JP</code>) on </p>
  
  <ul>
  <li>maven command line arguments (really not what I want but tried out of desperation)</li>
  <li><code>{$project_dir}/.mvn/jvm.config</code> (not ideal)</li>
  <li>environment <code>JAVA_ARGS</code> (under <code>/etc/environment</code>)</li>
  <li>maven JVM arguments in eclipse/intellij</li>
  <li><code>MAVEN_OPTS</code></li>
  </ul>
  
  <p>but none of them work. Pretty much at my wits end here.</p>
  
  <p>To be clear I'm looking for a solution with the following criteria:</p>
  
  <ul>
  <li>Not project specific</li>
  <li>Doesn't require project source modification (e.g. project properties files) outside of <code>.mvn</code></li>
  <li>Doesn't involve changing my actual system locale (<code>en_US</code>)</li>
  <li>Doesn't require constant maintenance (e.g. constantly add command line arguments)</li>
  </ul>
  
  <p>So basically some kind of environment variable.</p>