Download NetBeans!

20090622 Monday June 22, 2009

Developing for Google App Engine in NetBeans IDE

One of the many people I met at JavaOne was NetBeans Platform developer Mark Claassen. (I'd still like to interview him about his NetBeans Platform experiences, just like I did with Chad Dorkin, as evidenced in the interview published yesterday entitled "Semiconductor Validation Engineering on the NetBeans Platform".)

Mark was concerned that NetBeans IDE seemed to be missing a number of very crucial plugins or that those plugins had not been adequately advertized. Here's my attempt to rectify that situation for one specific plugin, the one for developing/deploying Java applications for the Google App Engine:

http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=18493

I also created an issue on the Google App Engine site for missing documentation relating to this NetBeans plugin:

http://code.google.com/p/googleappengine/issues/detail?id=1734

Feel free to add your support for this issue above.

Now a quick overview of what the plugin entails. First, of course, you need to download, unzip, and then install the NBM files that the plugin provides:

Next, you'll find you have the complete sample that is outlined on the Google App Engine site, i.e.. a Guest Book:

Also, the Google App Engine configuration file has a special icon, file support, and a visual editor:

The Services window shows a node for the running Google App Engine, which I was able to register after downloading the Java bundle for the Google App Engine:

Whenever you create a new web application, you can specify that it should be deployed to the Google App Engine, which causes the abovementioned Google App Engine configuration file to be created for you when Finish is clicked in this wizard:

And, once your application is ready to be deployed, you can right-click it and then upload it to the Google App Engine from inside the IDE:

That's a pretty solid plugin, providing exactly the kind of Google App Engine support that I'd expect NetBeans IDE to have. The only questions are when this will be mentioned on the Google App Engine site and when the plugin will be part of a standard NetBeans IDE release.

Go here to look at the sources, join the developer community around this project, or contribute source code yourself:

http://kenai.com/projects/nbappengine

Jun 22 2009, 02:04:14 AM PDT Permalink

Trackback URL: http://blogs.sun.com/geertjan/entry/developing_for_google_app_engine
Comments:

When i am deploying Google to App Engine i am getting error like this.. but in local server works good..
please help to solve the problem..

Error :

java.lang.IllegalStateException: cannot find javac executable based on java.home, tried "C:\Program Files\Java\jre6\bin\javac.exe" and "C:\Program Files\Java\bin\javac.exe"
Unable to upload app: cannot find javac executable based on java.home, tried "C:\Program Files\Java\jre6\bin\javac.exe" and "C:\Program Files\Java\bin\javac.exe"
Please see the logs [C:\DOCUME~1\Surya\LOCALS~1\Temp\appcfg8153516255142134194.log] for further information.

Posted by Dhanasekar on July 11, 2009 at 06:57 AM PDT #

Try this:

http://code.google.com/p/googleappengine/issues/detail?id=1226#makechanges

Posted by simon on July 15, 2009 at 07:33 PM PDT #

I am able to register App Engine SDK in NetBean6.7

what i did was
i installed 6.7
i downloaded appengine-java-sdk-1.2.2 frm app engine for java.

then i tried to add server:
services-->servers-->addserver-->googleappengine-->installation location=C:\appengine-java-sdk-1.2.2-->next

i got following error message

A java.lang.reflect.UndeclaredThrowableException exception has occurred.
Please report this at http://www.netbeans.org/community/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your C:\Users\shashi\.netbeans\6.7\var\log folder.

shashi shrestha
morbaehaven,albertslund

Posted by shashi on July 27, 2009 at 02:24 AM PDT #

I've just started trying out Netbeans and I can't get the Google App Engine plugin to install. For Netbeans 6.7.1 on windows xp, I get this error:

"Some plugins require plugin Swing Layout Extensions integration to be installed.
The plugin Swing Layout Extensions integration is requested in version >= 1.8.0.103 but only 1.7.1.103 was found. The following plugins are affected:       Google App Engine Configuration Editor       Google App Engine Deployment       Google App Engine Server"

Do I need to get a swing plugin installed first?

Thanks

Posted by Tom Borthwick on August 05, 2009 at 06:17 PM PDT #

http://kenai.com/jira/browse/NBAPPENGINE-33

Posted by Geertjan on August 06, 2009 at 03:22 AM PDT #

GeertJan,

After Adding the plugins , before uploading the sample, i needed to do an extra step (NB 6.7.1) to add the server (in tools>servers>add server)

jan

Posted by Jan on November 17, 2009 at 03:12 AM PST #

Hello All

When I create a sample web app using all the default settings and then clean and build it, I get the following.

init:
undeploy-clean:
C:\Documents and Settings\Darren\My Documents\My Projects\Netbeans Projects\WebApplication1\nbproject\build-impl.xml:858: Problem: failed to create task or type nbundeploy
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
BUILD FAILED (total time: 0 seconds)

Can anyone explain why this is happening and what I need to do to fix this.

Thanks

Posted by Darren on November 20, 2009 at 05:02 AM PST #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed