Re: Setting Java7 flag

651 views
Skip to first unread message

Ludovic Champenois

unread,
Dec 27, 2012, 3:27:51 PM12/27/12
to google-a...@googlegroups.com
Java7 is currently for Trusted Tester and you can apply at: 

Soon, we'll open to everyone.
Via Eclipse, you'll be able to add the --use_java7 flag to the appcfg tool in the next GPE release.
For now, assuming you are a trusted tester, you'll have to build your app and use the command line tool bin/appcfg  to update the application with the --use_java7 flag.

If you do not want to use Java7, you need to setup the Eclipse java compiler used by your project to target a Java 6 environment by adding these 2 flags to the javac compiler arguments:

-target 6 -source 6

This will create classes with the correct bytecode to run in a JVM 6 environment.
Ludo

On Wednesday, December 26, 2012 11:48:35 PM UTC-8, Ramses wrote:
Hello Al,

Am getting following errorr when deploying to App Engine from Eclipse Juno

The application contains Java 7 classes, but the --use_java7 flag has not been set.

Any idea how to to set the Java7 flag?

Thanks
Reply all
Reply to author
Forward
0 new messages