Click here to Skip to main content
15,794,475 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
lang="cs">import java.io.IOException;
import javax.servlet.http.*;



import com.sun.istack.internal.logging.Logger;

@SuppressWarnings("serial")
public class ChintamaniprogrammServlet extends HttpServlet {
//private static final Logger logger=logger.getLogger("chintamaniprogrammServlet");
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
resp.getWriter().println("Chintamani Tripathy");
}


hi all,i am unable to deployed into google app engine,and showing error that
java.lang.RuntimeException: The application contains Java 7 classes, but the --use_java7 flag has not been set.please anyone having idea then tell me.
Posted
Updated 18-Dec-12 2:08am
v2
Comments
Richard MacCutchan 18-Dec-12 6:58am    
The message is telling you what is wrong and how to fix it.
chinta123 18-Dec-12 7:09am    
ava.lang.RuntimeException: The application contains Java 7 classes, but the --use_java7 flag has not been set.please anyone having idea then tell me.
This is my error.

1 solution

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


so hard to understand?

You are working with Java7 on your development machine. There are certain differences between Java6 and Java 7 ( New Features in Java7[^]


so to use your full-blown, serious rocking Java7 toxicated application, you need to tell the Google App Engine that your code is working on Java7, and that the Google App Engine should be aware of that.

Blogpost about using Java7[^] @ Google App Engine Blog

What I would do:
- uninstall Java7 on th develoment machine
- install java6 latest Release

- configure to use Java6

- try again if App runs (all functions!).

100 times safer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900