无法将java programm部署到我的谷歌应用引擎中 [英] unable to deployed java programm into my google app engine

查看:108
本文介绍了无法将java programm部署到我的谷歌应用引擎中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

lang =cs> import java.io.IOException;

import javax.servlet.http。*;

 





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



@SuppressWarnings (序列号)

公共类ChintamaniprogrammServlet扩展HttpServlet {

//私有静态最终Logger logger = logger.getLogger(chintamaniprogrammServlet);

public void doGet(HttpServletRequest req,HttpServletResponse resp)

抛出IOException {

resp.setContentType(text / plain);

resp.getWriter()。println(Chintamani Tripathy);

}





大家好,我无法部署到谷歌应用引擎,并显示错误

java.lang.RuntimeException:该应用程序包含Java 7类,但尚未设置--use_java7标志。请任何有想法的人然后告诉我。

解决方案

该应用程序包含Java 7类,但尚未设置--use_java7标志。





这么难理解?



您正在开发机器上使用Java7。 Java6和Java 7之间存在一定的差异( Java7中的新功能 [< a href =http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.htmltarget =_ blanktitle =新窗口> ^ ]





所以要使用你的全面,严肃的摇摆Java7毒性应用程序,你需要告诉Google App Engine您的代码正在使用Java7,谷歌应用引擎应该知道这一点。



关于使用Java7的Blogpost [ ^ ] @ Google App Engine博客



我会做什么:

- 卸载Java7开发机器

- 安装java6最新版本



- 配置使用Java6



- 如果App运行,请再试一次(所有功能!)。



100倍更安全。


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.

解决方案

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.


这篇关于无法将java programm部署到我的谷歌应用引擎中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆