1. Install GAE - Netbeans Plugin
Download Google App Engine Netbeans Integration plugin from from the below link
Extract the contents to a folder.
Now open Netbeans IDE and go to Tools -> Plugins
In Downloads Tab, click Add Plugins and browse to the folder which contains the extracted files of the GAE Plugin and import all.
2. Register Google App Engine Server in Netbeans
Go to services tab in Netbeans and Right click on servers, click Add..
Select Google App Engine and proceed next to choose the GAE SDK folder contents.
In the next window if you wish to change the default ports change it else leave it as is..
HTTP : 8080 Debug : 8765
Then click Finish.
3. Start your first Project
Open File -> New Project, under Samples select Google App Engine
Now edit the sample guestbook application as you want.
Build and Run the project..
4. Deploying to Google Cloud
Sign up for Google App Engine using your Google account.
Create new project and note the project ID.
Update the project ID in appengine-web.xml.
Also, add threadsafe false tag.
Right click on the project name and click deploy.. That's all...
Now access your application at World wide web : http://<-your-app-id->.appspot.com