title: Google app engine deployment : JDK not JRE
body: <p>I have the</p>
  
  <pre><code>java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
  </code></pre>
  
  <p>While deploying my application on google app engine, I have searched for solutions and found that i should add: 
  <em>-vm C:\Program Files\Java\jdk1.7.0_02\bin\javaw.exe</em>
  to <em>eclipse.ini</em> file to force eclipse to use JDK not JRE, I have confirmed from 
  windows >> prefrences >> java >>> installed JRE that it points to the JDK not the JRE ... 
  I tried uninstalling the whole jdk and installing it again ... 
  and I still have the problem ....</p>
  
  <p><em>eclipse.ini</em> file is: </p>
  
  <pre><code>-vm C:\Program Files\Java\jdk1.7.0_02\bin\javaw.exe
  -startup
  plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
  --launcher.library
  plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20140116-2212
  -product
  org.eclipse.epp.package.jee.product
  --launcher.defaultAction
  openFile
  --launcher.XXMaxPermSize
  256M
  -showsplash
  org.eclipse.platform
  --launcher.XXMaxPermSize
  256m
  --launcher.defaultAction
  openFile
  --launcher.appendVmargs
  -vmargs
  -Dosgi.requiredJavaVersion=1.6
  -Xms40m
  -Xmx512m
  </code></pre>
  
  <p>and from Help >> About Eclipse >>>Installation details >>>configuration: 
  I have this:</p>
  
  <pre><code>-startup
  F:\programs\some\eclipse-jee-kepler-SR2-win32\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
  --launcher.appendVmargs
  -vm C:\Program Files\Java\jdk1.7.0_02\bin\javaw.exe
  -product
  org.eclipse.epp.package.jee.product
  -vm
  C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
  eclipse.home.location=file:/F:/programs/some/eclipse-jee-kepler-SR2-win32/eclipse/
  eclipse.launcher=F:\programs\some\eclipse-jee-kepler-SR2-win32\eclipse\eclipse.exe
  eclipse.launcher.name=Eclipse
  eclipse.p2.data.area=@config.dir/../p2/
  </code></pre>
  
  <p>JAVA_HOME variable value: <em>C:\Program Files\Java\jdk1.7.0_02\bin</em></p>