Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GAE: Cannot get the System Java Compiler. Please use a JDK, not a JRE

When trying to deploy my application to the Google App Engine server I get the following error: Cannot get the System Java Compiler. Please use a JDK, not a JRE.

All solutions I've seen for this involve editing an eclipse configuration file, but I'm not using eclipse. I'm executing appcfg.cmd from the dos prompt. I have a jdk installed and my JAVA_HOME is pointing to it: c:\program files\java\jdk1.6.0_43

Obviously appcfg.cmd is not looking at JAVA_HOME. It must be getting the JDK location from somewhere else.

Any ideas?

like image 662
user2521822 Avatar asked Jun 25 '13 21:06

user2521822


1 Answers

As noted in the comments: Make sure the JDK is FIRST in your PATH.

like image 101
Johannes Brodwall Avatar answered Oct 17 '22 22:10

Johannes Brodwall