title: WebSphere Application Server JVM arguments not being read properly
body: <p>We are using WebSphere 7- Application server for deploying project and this application server is given simple JVM arguments like this,</p>
  
  <pre><code>–Dsecurityresource=/web/sharedLibraries/security_config.xml -DConfig=/web/properties/Config.ini
  </code></pre>
  
  <p>But when tried to start the application server, a native error (native_stderr.log) is thrown as this,</p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt;
  
  &lt;verbosegc version="GA24_Java6_SR15_20131016_1337_B170922_CMPRSS"&gt;
  
  &lt;initialized&gt;
    &lt;attribute name="gcPolicy" value="-Xgcpolicy:optthruput" /&gt;
    &lt;attribute name="maxHeapSize" value="0x100000000" /&gt;
    &lt;attribute name="initialHeapSize" value="0xc0000000" /&gt;
    &lt;attribute name="compressedRefs" value="true" /&gt;
    &lt;attribute name="compressedRefsDisplacement" value="0x0" /&gt;
    &lt;attribute name="compressedRefsShift" value="0x3" /&gt;
    &lt;attribute name="pageSize" value="0x10000" /&gt;
    &lt;attribute name="requestedPageSize" value="0x10000" /&gt;
  &lt;/initialized&gt;
  
  Exception in thread "main" java.lang.NoClassDefFoundError: Dsecurityresource=.web.sharedLibraries.security-config.xml
  Caused by: java.lang.ClassNotFoundException: Dsecurityresource=.web.sharedLibraries.FalconCluster.security-config.xml
      at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:677)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
  &lt;/verbosegc&gt;
  Could not find the main class: Dsecurityresource=/web/sharedLibraries/security-config.xml.  Program will exit.
  </code></pre>
  
  <p>The JVM arguments are given at the following location in WebSphere.</p>
  
  <pre><code>Servers &gt; Server Types &gt; WebSphere application servers &gt; server_name &gt;Java and process management &gt; Process definition &gt; Java virtual machine and in Generic JVM arguments
  </code></pre>
  
  <p>its strange as it is throwing NoClassDefFoundError. </p>
  
  <p>or is there any other configuration in Websphere that might be causing this problem?</p>
  
  <p>Note : files and path provided in the JVM arguments exists and has read and execute permissions</p>
  
  <p>Thanks in advance.</p>