maven does not use 64 bit jvm
<p>I am facing a weird issue in maven.</p>
<p>I am running java 1.8 in 64 bit windows .
When I run java -version I get the below message</p>
<pre><code>java version &quot;1.8.0_60&quot;
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
</code></pre>
<p>I am running maven 3.3.9 on the above jdk.</p>
<p>When I run mvn -version I get the below message</p>
<pre><code>Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T19:41:4
7+03:00)
Maven home: D:\Users\57181\Projects\mvn\apache-maven-3.3.9-bin\apache-maven-3.3.
9
Java version: 1.8.0-ea, vendor: Oracle Corporation
Java home: D:\java\java8\java8\jdk1.8.0\jre
Default locale: en_US, platform encoding: Cp1252
OS name: &quot;windows 7&quot;, version: &quot;6.1&quot;, arch: &quot;x86&quot;, family: &quot;dos&quot;
</code></pre>
<p>However when I run mvn -d64 -version , I get below error</p>
<pre><code>Error: This Java instance does not support a 64-bit JVM.
Please install the desired version.
</code></pre>
<p>I need to build a very large project using maven which needs 2 GB heap.<br />
Though my machine has 8 GB RAM , I am not able to set the heap since Maven is running in 32 bit( In the task manager , the process shows as * 32 )</p>
<p>Has anybody faced this issue ?</p>
<p>Is there any configuration needed to run maven in 64 bit JVM ?</p>