Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine and Java Version?

I have jre 7 installed and jdk 6u29. I can't install jre6 because an old version of it is stopping the install, I've tried removing all traces of it but it still telling me an old version is installed.

My question is can I develop for GoogleApp engine with jdk6 and jre7 combination? I keep getting error in my logs that indicate the class was compiled with the wrong version java?

like image 496
James MV Avatar asked Nov 15 '11 16:11

James MV


2 Answers

Well, on GAE's page it doesn't say anything specific about JDk7, but I think that's just because the page hasn't been updated in a while. I can tell you that i do infact use JDK 7 with GAE (have done so for months) and everything's fine.

Normally the JRE doesn't enter in this equation, as running the GAE locally will still make use of the same JDK you use for dev. However if you indeed would manually try to run a JDK7 compiled class using JRE6 this would not work, but again, I don't think this is an issue in your context.

like image 105
Shivan Dragon Avatar answered Sep 28 '22 19:09

Shivan Dragon


you can change your compiler version in eclipse using following steps

  1. Right click on project and take properties
  2. Change java compiler to the desired version
like image 30
nidhin Avatar answered Sep 28 '22 19:09

nidhin