Re: Failed to deploy to Google App Engine because --use_java7 flag has not been set

961 views
Skip to first unread message

Ludovic Champenois

unread,
Dec 17, 2012, 1:42:20 PM12/17/12
to google-a...@googlegroups.com
With your JDK 7 javac tools (via command line or via Eclipse configuration for your current javac compiler, you need to use the 2 javac flags to create Java6 compliant classes:

-source 6 - target 6

See complete information on the target and source flags at:




On Sunday, December 16, 2012 3:30:00 PM UTC-8, Jarom wrote:
How do I use JRE6 for a new web application? I want to create one and then migrate my current app into it to make it AppEngine-enabled. It sounds like Google won't be including Java7 support until at least next February, but I want to release my app before then!

Joakim

unread,
Dec 17, 2012, 3:25:04 PM12/17/12
to google-a...@googlegroups.com
It is probably better to use a JDK 6 install to make sure you're not using any new classes/methods introduced in 7. The source and target switches don't cover that.
If you really want to use a JDK 7 install to compile for Java 6, you should compile with -bootclasspath /path/to/jdk1.6.0/lib/rt.jar (in addition to source/target). At that point you've probably got JDK 6 installed, and might as well use it.

Jarom

unread,
Dec 17, 2012, 5:18:34 PM12/17/12
to google-a...@googlegroups.com
Hey, thanks for the answers. I really appreciate it. :-)

Jarom

unread,
Dec 19, 2012, 4:34:11 PM12/19/12
to google-a...@googlegroups.com
Hi Rakesh,

I ended up just uninstalling JDK1.7 and forcing everything to use JDK1.6. It worked after that.



On Tuesday, 18 December 2012 21:16:40 UTC+10, Rakesh parija wrote:
hi Jarom, I am using jdk 1.7.4 so that i am getting the same error.Please if u know then tell me how i avoid this.


Thanks in advance



Reply all
Reply to author
Forward
0 new messages