如何在Eclipse中运行Google App Engine + GWT的示例项目?

时间:2023-01-24 18:07:47

Ive installed the Google Plugin for Eclipse and created a demo project using App Engine and GWT. Now I want to launch and see it. But after compile nothing else happens. Shouldn't there be an integrated browser that shows the app?

我已经安装了Eclipse插件,并使用App Engine和GWT创建了一个演示项目。现在我想发布并看到它。但编译后没有其他事情发生。是不是应该有一个显示应用程序的集成浏览器?

4 个解决方案

#1


You need to right click on the project name and hit run > web application. Compiling it is for deployment, and most likely not what your looking for from running. The key differences here are hosted mode handles the cross-compilation for you, while compiling is meant for deployment of the javascript to your web server.

您需要右键单击项目名称并点击运行> Web应用程序。编译它是为了部署,很可能不是你想要的运行。这里的主要区别是托管模式为您处理交叉编译,而编译则用于将JavaScript部署到您的Web服务器。

#2


As far as I know, you just point your browser (any browser) to http://localhost:8080. Is that not working for you?

据我所知,您只需将浏览器(任何浏览器)指向http:// localhost:8080即可。这不适合你吗?

#3


I get it running externally on the command line with dev_appserver . or to upload to the google site appcfg update .

我使用dev_appserver在命令行上运行它。或上传到谷歌网站appcfg更新。

for python they're .py files and for java their .cmd calls wish I could mix and match my languages/GAE environments

对于python,他们是.py文件,对于java,他们的.cmd调用希望我可以混合和匹配我的语言/ GAE环境

#4


You can right click your project and goto Run as > Web Application.

您可以右键单击您的项目并转到Run as> Web Application。

You can see that a local Jetty Server.

你可以看到一个本地Jetty服务器。

You can manually type the address http://localhost:8888 or you can access through cmd

您可以手动键入地址http:// localhost:8888,也可以通过cmd访问

#1


You need to right click on the project name and hit run > web application. Compiling it is for deployment, and most likely not what your looking for from running. The key differences here are hosted mode handles the cross-compilation for you, while compiling is meant for deployment of the javascript to your web server.

您需要右键单击项目名称并点击运行> Web应用程序。编译它是为了部署,很可能不是你想要的运行。这里的主要区别是托管模式为您处理交叉编译,而编译则用于将JavaScript部署到您的Web服务器。

#2


As far as I know, you just point your browser (any browser) to http://localhost:8080. Is that not working for you?

据我所知,您只需将浏览器(任何浏览器)指向http:// localhost:8080即可。这不适合你吗?

#3


I get it running externally on the command line with dev_appserver . or to upload to the google site appcfg update .

我使用dev_appserver在命令行上运行它。或上传到谷歌网站appcfg更新。

for python they're .py files and for java their .cmd calls wish I could mix and match my languages/GAE environments

对于python,他们是.py文件,对于java,他们的.cmd调用希望我可以混合和匹配我的语言/ GAE环境

#4


You can right click your project and goto Run as > Web Application.

您可以右键单击您的项目并转到Run as> Web Application。

You can see that a local Jetty Server.

你可以看到一个本地Jetty服务器。

You can manually type the address http://localhost:8888 or you can access through cmd

您可以手动键入地址http:// localhost:8888,也可以通过cmd访问