GAE: Unable to get System Java compiler. Please use JDK, not JRE

When I try to deploy my application on a Google App Engine server, I get the following error: Unable to get the System Java compiler. Please use JDK, not JRE.

All the solutions that I have seen for this include editing the eclipse configuration file, but I do not use eclipse. I execute appcfg.cmd from the dos prompt. I have jdk installed and my JAVA_HOME points to it: c: \ program files \ java \ jdk1.6.0_43

Obviously appcfg.cmd is not looking at JAVA_HOME. This must be a JDK place from another place.

Any ideas?

+7
source share
2 answers

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

+4
source

I had the same problem with appengine sdk 1.8.1 and sts 3.6.4.

I tried adding vm properties to sts.ini file, added% JAVA_HOME% to the beginning of the path variable. But nothing worked as I kept getting the same error.

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

Then I found that the problem was with the Windows \ system32 \ java * file. Appengine read java from Windows \ system32. There were three files.

 java.exe javaw.exe javaws.exe 

I replaced these files with the JAVA JDK home, as they were from the JAVA JRE home during installation. After that, I restarted my sts and everything worked fine, since I can deploy without problems.

0
source

All Articles