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

2,279 views
Skip to first unread message

ritesh mehandiratta

unread,
Aug 30, 2013, 3:44:37 PM8/30/13
to apps-marketplac...@googlegroups.com

i am trying to upload a GAE java project to google app engine . when i run the command from my command line

 sudo ./appcfg.sh update /home/ritesh/MarketPlace/helloworld-java-2011050303/target/exploded

it is giving me error logs

Beginning interaction for module default...
0% Created staging directory at: '/tmp/appcfg7358649622384760069.tmp'
5% Scanning for jsp files.
8% Compiling jsp files.

Error Details:
Aug 31, 2013 12:55:14 AM org.apache.jasper.JspC processFile
INFO: Built File: /index.jsp
Aug 31, 2013 12:55:14 AM org.apache.jasper.JspC processFile
INFO: Built File: /support.jsp
Aug 31, 2013 12:55:14 AM org.apache.jasper.JspC processFile
INFO: Built File: /WEB-INF/jsp/hello.jsp


java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
Unable to update app: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
Please see the logs [/tmp/appcfg77694933863265627.log] for further information.

can any one please tell how to get rid of this error ?? when i run javac -version it is giving output as

javac 1.7.0_11

and when i run java -version it is giving me

java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.10.1)
OpenJDK Server VM (build 23.7-b01, mixed mode)

can any one please tell how to get rid of this error ??

i am following this tutorial https://developers.google.com/google-apps/marketplace/tutorial_java

PS this appcfg.sh is in eclipse/plugin directory

David Cifuentes Cortes

unread,
Sep 2, 2013, 8:47:44 PM9/2/13
to apps-marketplac...@googlegroups.com
I ran into a similar problem. Make sure your "java" that is in the JAVA_HOME and the PATH enviroment variables are pointing to a JDK instead of a JRE. If that doesn't solve the problem, I'd recommend doing the deploy with the command line within the SDK, edit the appcfg.sh with the full path to your JDK java exe.

David Cifuentes
Eforcers S.A.


Eforcers S.A.
www.eforcers.com
Cra. 12 No 90-20
Of. 301, 303, 306 
Bogotá, Colombia 
PBX [+571] 622 8320
FAX [+571] 622 8275
in...@eforcers.com

    

"La información aquí contenida es para uso exclusivo de la persona o entidad de destino. Está estrictamente prohibida su utilización, copia, descarga, distribución, modificación y/o reproducción total o parcial, sin el permiso expreso de Eforcers S.A., pues su contenido puede ser de carácter confidencial y/o contener material privilegiado. Si usted recibió esta información por error, por favor contacte en forma inmediata a quien la envió y borre este material de su computador. Eforcers S.A. no es responsable por la información contenida en esta comunicación, el directo responsable es quien la firma o el autor de la misma."

Reply all
Reply to author
Forward
0 new messages