title: Adding Runtime VM parameters to intellij for Java 9
body: <p>I am using IntelliJ to build a spring boot project in Java 9.
  But I'm getting 
  <code>Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException</code>
  whenever i use <code>@SpringBootTest</code> or <code>@DataJpaTest</code>.</p>
  
  <p>Following this <a href="https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j">post</a> I added <code>--add-modules=java.xml.bind</code> in the <strong>Run Configuration - VM options</strong> which fixed the problem but only for that Run Configuration on which I added it.</p>
  
  <p>Now i have multiple Test Classes that make use of <code>@SpringBootTest</code> or <code>@DataJpaTest</code> and if I manually go and add the <code>--add-modules=java.xml.bind</code> to each Run Configuration, each on works individually but when i try to for example</p>
  
  <p><code>src/test/java -&gt; right click and Run Tests</code> (on the whole test suite) </p>
  
  <ul>
  <li>it doesn't consider those individual Run Configuration and hence fails for those tests,</li>
  </ul>
  
  <p>Is there any option to add the VM options - so that they are considered during integration test runs.</p>