title: Eclipse CDT headless build JVM error=1 on exit
body: <p>I have a eclipse Luna CDT installed, and trying to set up automated build with the headless build feature. I have java 7 installed alongside.</p>
  
  <p>When I tried to build the project using the following command, the project is built completely (both debug and release), but get JVM error before exiting.</p>
  
  <p>Following is the command:</p>
  
  <pre><code>eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data &lt;workspace_path&gt; -cleanBuild &lt;proj_name&gt;
  </code></pre>
  
  <p>Following is the error while exiting (after build is done):</p>
  
  <p>JVM terminated. Exit code=1</p>
  
  <pre><code>/usr/lib/jvm/java-7-openjdk-amd64/bin/java
  -XX:MaxPermSize=1024m
  -Xms128m
  -Xmx768m
  -jar /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
  -os linux
  -ws gtk
  -arch x86_64
  -launcher /opt/eclipse/eclipse
  -name Eclipse
  --launcher.library /opt/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326/eclipse_1605.so
  -startup /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
  --launcher.appendVmargs
  -exitdata 58001
  -product org.eclipse.epp.package.cpp.product
  -application org.eclipse.cdt.managedbuilder.core.headlessbuild
  -data &lt;workspace_path&gt;
  -cleanBuild &lt;proj_name&gt;
  -vm /usr/lib/jvm/java-7-openjdk-amd64/bin/java
  -vmargs
  -XX:MaxPermSize=1024m
  -Xms128m
  -Xmx768m
  -jar /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
  </code></pre>
  
  <p>Any clue?</p>
  
  <p>I also looked at other similar posts and tried different options.</p>