Google App Engine(1)Java Start and Installation

本文介绍了如何使用Eclipse和Google插件为Google App Engine开发和部署Java应用程序,包括安装Java SDK、配置环境、运行示例应用等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Google App Engine(1)Java Start and Installation
Installing the Java SDK
We develop and upload Java applications for Google App Engine using the App Engine java software development kit(SDK).

Getting Java
Our application is running on App Engine, but App Engine is based on JVM and standard libraries. I am an old Java user, so I already have Java.

Using Eclipse and the Google Plugin for Eclipse
Install the eclipse plugin
https://dl.google.com/eclipse/plugin/4.2

Using Apache ANT
ANT is a must for me an old Java man.

Getting the SDK
I am using Eclipse and Google Plugin. Click on the References--Google--App Engine
It installed a 1.7.4 App Engine under my eclipse.
The directory is very deep in my local machine, I do not like that. So I try to install it my self. Get the package in this URL.
https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Java

appengine-java-sdk-1.7.4.zip

Unzip the file and place it in the working directory
>pwd
/Users/carl/tool/appengine-java-sdk-1.7.4
>sudo ln -s /Users/carl/tool/appengine-java-sdk-1.7.4 /opt/appengine-java-sdk-1.7.4
>sudo ln -s /opt/appengine-java-sdk-1.7.4 /opt/appengine-java

Change the Eclipse -- Google -- App Engine to point to here.

Append the path export PATH=/opt/appengine-java/bin:$PATH in ~/.profile
>. ~/.profile

Trying a Demo Application
>cd /opt/appengine-java/demos/guestbook
>dev_appserver.sh war

Then I can visit 2 web URLs
http://localhost:8080/
That is the sample and demo of guestbook.

http://localhost:8080/_ah/admin
That is the console admin.


References:
https://developers.google.com/appengine/docs/java/gettingstarted/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值