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

后端 未结 2 937
栀梦
栀梦 2020-12-31 22:12

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.

A

相关标签:
2条回答
  • 2020-12-31 22:22

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

    0 讨论(0)
  • 2020-12-31 22:23

    I had the same issue 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 was working as I kept getting the same error.

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

    Then I found the issue was with Windows\system32\java* file. The appengine was reading the java from Windows\system32. There were three files.

    java.exe
    javaw.exe
    javaws.exe
    

    I replaced these files from JAVA JDK home as they were from JAVA JRE home during installation. After that, I restarted my sts and everything worked fine as I am able to deploy without issue.

    0 讨论(0)
提交回复
热议问题