Developing in the Google Cloud

Tutorials, tips, tricks, and news about Google App Engine

Getting Started With Google App Engine and NetBeans Part 1

57 comments

Note: The second part of this tutorial has been posted here. If you’ve already completed part 1 and are ready to move on, check out part 2 now.

Getting started with Google App Engine development is easy and free. For the purposes of this tutorial, I tend to focus on developing GAE apps from within the Linux platform. However, since both Netbeans and the Google App Engine SDK are multiplatform, these instructions will be pretty much the same on any of the major operating systems (Linux, Mac, or Windows).

Let’s get started.

Sign up for Google App Engine

First things first. Navigate to http://appengine.google.com and sign up to enable your Google Account for use with Google App Engine. In order to activate your account, you will need a phone that supports SMS or text messaging. Thankfully this is not hard to find these days as every major phone for the last bajillion years has this feature. :)

Create Your App

After activating your account, create your application. Once you’ve got your application name and URL solved, write them down or store the information in a text file. It’s amazing how many times I had to look up what domain Google uses for their cloud apps before they’re live. I’ve been working with Windows Azure and their appname.cloudapp.net setup for so long that I always want to type that instead. Google App Engine apps are located at appname.appspot.com.

Download the Google App Engine SDK

Download and unzip the Google App Engine SDK to a folder on your hard drive. For my projects I use the Java SDK but feel free to download the Python version if that’s your thing.

Install the NetBeans Integrated Development Environment

If you haven’t already, install the NetBeans IDE. This is the program you’ll use to manage your GAE application projects and write source code. Consequently, you are also able to publish GAE apps from within the IDE.

To install NetBeans on Mandriva Linux, type urpmi netbeans in the command-line as the root user. For Debian-based Linux such as Ubuntu, try sudo apt-get netbeans. For other operating systems, try downloading NetBeans manually from the NetBeans homepage.

If you’ve never used NetBeans before, prepare to be blown away. I love this IDE. It runs on all major platforms and has tons of plugins to help brighten your day. In fact, plugins are what we’ll be installing next.

Install the Google App Engine NetBeans Plugin

To install the Google App Engine NetBeans Plugin, follow these instructions:

  1. Start NetBeans
  2. Make note of NetBeans version number
  3. Click Tools -> Plugins
  4. Select the Settings tab
  5. Click the Add button
  6. Type “App Engine” (without the quotes) into the Name field
  7. If using NetBeans 6.7 paste http://kenai.com/projects/nbappengine/downloads/download/1.0_NetBeans671/updates.xml into the URL field
  8. If using NetBeans 6.8 paste http://kenai.com/projects/nbappengine/downloads/download/Latest_NetBeans68/updates.xml into the URL field
  9. If using NetBeans 6.9 paste
    http://kenai.com/downloads/nbappengine/NetBeans69/updates.xml into the URL field
  10. Click the OK button
  11. Click on Available Plugins
  12. Select all Google App Engine plugins
  13. If you’re using NetBeans 6.9 you must also install the  Java Web Applications plugin for NetBeans. Not sure why, but it will not work without it installed (thanks to the user comments below for this one!)
  14. Click the Install button

Installing the Google App Engine Service in NetBeans

To install the Google App Engine service in NetBeans, follow these instructions:

  1. Start NetBeans
  2. Click on the Services tab next to Projects and Files
  3. Right-click on Servers and click Add
  4. Select Google App Engine and Click Next
  5. Select the location you unzipped the Google App Engine SDK
  6. Click Next
  7. Unless you have another service running on port 8080 and port 8765 leave the default port values
  8. Click Finish

Run the Guestbook Sample App

We are almost done! To test the install and ensure everything runs properly, let’s try running the included Guestbook sample app.

  1. Start NetBeans
  2. Click File -> New Project
  3. Under Samples, select Google App Engine -> Guestbook
  4. Click Next
  5. Enter the location in which you’d like to store this project
  6. Click Finish
  7. Click the Run button (looks like a green Play button in the toolbar)

At this point you should have a fully-functioning app loaded in your default browser, showing you a guestbook. Congratulations! If you’ve run into any errors along the way and cannot solve them on your own, please leave a comment below.

The next article in this series will focus on deploying your shiny new app to the Google App Engine service.

Share

Written by rocky1138

January 5th, 2010 at 4:12 am

57 Responses to 'Getting Started With Google App Engine and NetBeans Part 1'

Subscribe to comments with RSS or TrackBack to 'Getting Started With Google App Engine and NetBeans Part 1'.

  1. Great start, Rocky! I’m looking forward to seeing this develop.

    Rick

    Rick Ross

    5 Jan 10 at 8:23 am

  2. [...] About « Getting Started With Google App Engine and NetBeans Part 1 [...]

  3. Good tutorial. Thanks

    SMiGL

    12 Jan 10 at 7:48 am

  4. HTTP ERROR: 500

    Bad version number in .class file

    RequestURI=/
    Caused by:

    java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:156)
    at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:69)
    at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:548)
    at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:136)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23)
    at com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
    at com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java:80)
    at com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java:254)
    at com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:120)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:313)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

    Powered by Jetty://

    vg

    13 Jan 10 at 12:01 pm

  5. My first thoughts are to verify that you have the correct version of Java installed on your machine.

    Also, check out these URLs. They may be able to point you in the right direction.

    http://www.theodorenguyen-cao.com/2009/04/08/google-app-engine-adds-java-support-review/
    http://code.google.com/p/googleappengine/issues/detail?id=1507

    John Rockefeller

    13 Jan 10 at 1:38 pm

  6. Hi, I had the same prob and I set the PATH environment variable to include “C:\Program Files\Java\jdk1.6.0\bin” and it works.

    samatshi

    19 Jan 10 at 7:57 am

  7. @yg : … when I start to Run it got a same error what you had. But after I add “guestbook” to the browser ( http://localhost:8080/guestbook ) and it run well.
    I hope it help you

    Mardi

    19 Jan 10 at 1:18 pm

  8. All work fine. I just had a little problem with the path of the jdk1.6.0_7. The compiler didn´t get find de javac program.

    Geraldo victorazzi

    19 Jan 10 at 3:07 pm

  9. samatshi :
    Hi, I had the same prob and I set the PATH environment variable to include “C:\Program Files\Java\jdk1.6.0\bin” and it works.

    Would you be able to let our readers know how you changed the PATH environment variable? It would be very helpful for those who’ve experienced this error to benefit from this knowledge.

    John Rockefeller

    19 Jan 10 at 3:49 pm

  10. [...] Getting Started With Google App Engine and NetBeans Part 1 « Developing in the Google Cloud (tags: google netbeans java programming googleappengine appengine) [...]

  11. How about if I want to deploy an existing web project to my google app engine and not the sample google web app?

    Netbeans IDE disables the “Deploy to Google App” when I tried…

    topriddy

    20 Jan 10 at 3:38 am

  12. Cuffs know how to make a web crud, similar to jsfcrud, but using Google App Engine?

    Reginaldo Silva

    21 Jan 10 at 11:57 am

  13. Hi..nice tutorial!
    I did the step and worked very well!
    I wait for the next tutorial!

    Rodrigo Monteiro

    21 Jan 10 at 5:47 pm

  14. @Rodrigo The next part of the tutorial has been released on this blog at this URL: http://rocky.developerblogs.com/tutorials/getting-started-with-google-app-engine-and-netbeans-part-2/

    @Reginaldo Sorry, I didn’t understand your question. Can you provide some links for backstory?

    @topriddy I don’t actually have an existing web project to launch on Google App Engine, but I’d be more than willing to post your experiences if you send it to me jrockefeller1@gmail.com.

    I’d like to hear more comments on all of your experiences. Thanks for reading!

    John Rockefeller

    21 Jan 10 at 8:07 pm

  15. [...] Getting Started With Google App Engine and NetBeans Part 1 « Developing in the Google Cloud (tags: google netbeans) [...]

  16. Hi, my Netbeans cannot read the Guestbook Project.
    I have created the project and saved it, but when I attempt to open the project, and I select the “Guestbook” Folder, this appears in the Project Name: text box
    “”

    I’m sure I have installed all the Google Plugins, should I try reinstalling them?

    Cheers

    Clark

    23 Jan 10 at 9:27 pm

  17. What happens when you enter “Guestbook” in the text box and try again? I believe I had to do this step.

    John Rockefeller

    23 Jan 10 at 10:42 pm

  18. I’m sorry I guess the pasted text did not get through, what I meant to paste was this:
    unrecognized project; missing plug-in?
    Also the Project Name textbox was greyed out and did not accept entries.

    Cheers

    Clark

    23 Jan 10 at 10:51 pm

  19. Clark :
    I’m sorry I guess the pasted text did not get through, what I meant to paste was this:
    unrecognized project; missing plug-in?
    Also the Project Name textbox was greyed out and did not accept entries.
    Cheers

    Very strange. Make sure you’re running the latest copy of NetBeans and download a fresh copy of the GAE zip from Google to be sure. Let me know, if after that, you’re still having issues.

    John Rockefeller

    23 Jan 10 at 10:53 pm

  20. Hi, I’m running Netbeans 6.8, and I’ve extracted a fresh copy of the GAE. The Same problem exists, I have tried reinstalling the GAE plugin, but nothing beneficial so far.

    Cheers

    Clark

    24 Jan 10 at 12:58 am

  21. For the issue of opening the project and getting the message “unrecognized project; missing plug-in?”.
    I had a minimal NetBeans install.
    After a Google search I found a solution.
    I had to install the plugin “Java Web Applications”, then I was able to open the GuestBook project.

    Mark B

    24 Jan 10 at 10:56 pm

  22. Hi, I am new to for Java, Can you help with the below error that i encountered while running.

    HTTP ERROR: 500
    Error running javac.exe compiler
    RequestURI=/

    Caused by:
    Error running javac.exe compiler
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:473)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)

    Sundar

    7 Feb 10 at 11:24 am

  23. Sundar :
    Hi, I am new to for Java, Can you help with the below error that i encountered while running.
    HTTP ERROR: 500
    Error running javac.exe compiler
    RequestURI=/
    Caused by:
    Error running javac.exe compiler
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:473)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)


    Caused by:
    java.io.IOException: Cannot run program “javac.exe”: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)

    +some more…

    Sundar

    7 Feb 10 at 11:28 am

  24. It works without troubles. Thanks

    Vulkana

    24 Feb 10 at 2:13 pm

  25. Nice plugin for netbeans.
    It works well on my netbeans 6.8.

    Hank

    3 Mar 10 at 8:23 am

  26. Sundar :
    Hi, I am new to for Java, Can you help with the below error that i encountered while running.
    HTTP ERROR: 500
    Error running javac.exe compiler
    RequestURI=/
    Caused by:
    Error running javac.exe compiler
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:473)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)

    If your running on windows you need to add the java jdk to your PATH in “Environment Variables”. You will need to restart the command prompt in order for it to work. When you can type “javac -version” from the command prompt without an error you know its working and you can retry to start your server.

    mjm

    12 Apr 10 at 11:37 am

  27. Hi Rocky,
    I am trying to install GAE for Python in Netbeans IDE. I have followed your article step by step and i got struck while adding server at the below point.

    Installing the Google App Engine Service in NetBeans
    5. Select the location you unzipped the Google App Engine SDK

    I have installed my GAE sdk for python at C:\Program Files\Google\google_appengine . when i point this location as my installation location. I am getting a message “please provide a valid google app engine location”. Why i am getting this message? Does this article applicable for GAE python or only GAE Java? Please help me on this.

    Thanks in advance.

    ekanna

    29 May 10 at 7:06 am

  28. boinjour, a chaque fois que je choisis les plug in qui conserne google apps sous netbeans et j essai de les installer, un message d erreur m indique une erreur de ”’network problem’ il se peut que le serveur n est pas disponible pour le moment; assazyer plus tard; cet erreur se repete a chaque fois

    ramzi

    1 Jun 10 at 8:53 am

  29. Ramzi :
    bonjour, un Every Fois Que je Choisis les brancher Qui conserne Google Apps sous netbeans et j essai d’installation de ERP, il message des Nations Unies d UNE Erreur indique m Erreur de “problème de réseau” SE Peut Que le serveur n CEST Pas Verser le Available moment; assazyer Plus Tard; CET Erreur SE REPETE une Every Fois

    ramzi

    1 Jun 10 at 9:06 am

  30. Hi, I am getting the following error. What should be done?

    HTTP ERROR: 500

    Unable to compile class for JSP

    Generated servlet error:
    [javac] Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
    [javac] at java.net.URLClassLoader$1.run(Unknown Source)
    [javac] at java.security.AccessController.doPrivileged(Native Method)
    [javac] at java.net.URLClassLoader.findClass(Unknown Source)
    [javac] at java.lang.ClassLoader.loadClass(Unknown Source)
    [javac] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    [javac] at java.lang.ClassLoader.loadClass(Unknown Source)
    [javac] Exception in thread “main” Could not find the main class: com.sun.tools.javac.Main. Program will exit.

    RequestURI=/

    Caused by:

    org.apache.jasper.JasperException: Unable to compile class for JSP

    Generated servlet error:
    [javac] Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
    [javac] at java.net.URLClassLoader$1.run(Unknown Source)
    [javac] at java.security.AccessController.doPrivileged(Native Method)
    [javac] at java.net.URLClassLoader.findClass(Unknown Source)
    [javac] at java.lang.ClassLoader.loadClass(Unknown Source)
    [javac] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    [javac] at java.lang.ClassLoader.loadClass(Unknown Source)
    [javac] Exception in thread “main” Could not find the main class: com.sun.tools.javac.Main. Program will exit.

    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23)
    at com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
    at com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java:80)
    at com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java:254)
    at com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:120)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:313)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
    Powered by Jetty://

    shanthi

    2 Jun 10 at 12:30 am

  31. Sundar :

    Sundar :
    Hi, I am new to for Java, Can you help with the below error that i encountered while running.
    HTTP ERROR: 500
    Error running javac.exe compiler
    RequestURI=/
    Caused by:
    Error running javac.exe compiler
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:473)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)


    Caused by:
    java.io.IOException: Cannot run program “javac.exe”: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    +some more…

    Hey Sundar…can u please explain we how u fixed it?? I am also having the same problem…

    Amol

    4 Jun 10 at 12:09 am

  32. [...] memulai menggunakan GAE/J,  baca dokumentasinya kemudian  tutorial ini dan lanjutannya jika menggunakan [...]

  33. I did all that was mentioned int his tutorial but am repeatedly getting this error.

    [java] Exception in thread “main” java.lang.UnsupportedOperationException
    [java] at java.util.AbstractList.add(libgcj.so.10)
    [java] at java.util.AbstractList.add(libgcj.so.10)
    [java] at com.google.appengine.tools.KickStart.(KickStart.java:78)
    [java] at com.google.appengine.tools.KickStart.main(KickStart.java:65)

    BUILD FAILED
    /home/jayati/Documents/GoogleTools/appengine-java-sdk-1.3.4/demos/Guestbook/nbproject/ant-deploy.xml:29: The following error occurred while executing this line:
    /home/jayati/Documents/GoogleTools/appengine-java-sdk-1.3.4/config/user/ant-macros.xml:31: Java returned: 1

    I am using NB 6.8 and have downloaded the latest plug in for App engine. I was trying to deploy the sample guestbook Google Web Toolkit application on local App Engine Server. The guestbook when run from the command line works fine. But when the same guestbook is run through Netbeans, shows this error. Please help..

    jayati

    24 Jun 10 at 12:05 am

  34. Works good with NetBeans 6.8, but does not with 6.9. I can install it, but it won’t open the sample GAE project.

    Thomas

    11 Jul 10 at 4:44 am

  35. Hi
    I am running the error below. Can you help me out

    HTTP ERROR 500

    Problem accessing /. Reason:

    Error running javac.exe compiler
    Caused by:

    Error running javac.exe compiler
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:509)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:61)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23)
    at com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
    at com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java:80)
    at com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java:254)
    at com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:120)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
    Caused by: java.io.IOException: Cannot run program “javac.exe”: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:832)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:447)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:461)
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:506)
    … 55 more
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    … 65 more
    — Nested Exception —
    java.io.IOException: Cannot run program “javac.exe”: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:832)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:447)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:461)
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:506)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:61)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23)
    at com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
    at com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java:80)
    at com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java:254)
    at com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:120)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    … 65 more
    Caused by:

    java.io.IOException: Cann

    faheem

    21 Jul 10 at 12:15 am

  36. If you are using Netbeans 6.9, then to install the Google App Engine NetBeans plugin, you need to use this url:

    http://kenai.com/downloads/nbappengine/NetBeans69/updates.xml

    Jen

    25 Jul 10 at 6:12 pm

  37. Thanks…..that was really Helpful
    but where is the next article

    Reve99

    30 Jul 10 at 2:52 am

  38. Thank you for the very helpful tutorial.
    I just tested the steps for NetBeans 6.9
    A copy of the sample “guestbook” application is (for now) uploaded by NetBeans 6.9 to Google Apps at http://askgerbilnow.appspot.com

    An update to the tutorial is required in: “Install the Google App Engine NetBeans Plugin”. Insert a new step-

    “8A. If using NetBeans 6.9 paste http://kenai.com/downloads/nbappengine/NetBeans69/updates.xml into the URL field”

    There is a small discrepancy in this plugin.
    Starting the Google Apps server to test the sample application generates the following message-
    “Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar”

    Tools.jar is in the Java SDK located in “C:\Program Files\Java\jdk1.6.0_21\lib\tools.jar”

    (A quick workaround is to make a copy of tools.jar in C:\Program Files\Java\jre6\lib\tools.jar)

    Colin

    7 Aug 10 at 8:42 am

  39. @Sundar and you java to your operating system path variable if your are using window follow the following steps
    1 click on start button
    2 right click computer select properties
    3 click on advanced system properties
    4 click on environment variables
    5 in the second box scroll down to select path , click on edit
    6 Add bin path to your java installation
    in my case C:\Program Files\Java\jdk1.6.0_13\bin
    7 click on OK 3 times
    8 run your app a again .

    lanre

    28 Aug 10 at 2:27 am

  40. Hi, everything went fine till “Run”. Then it wrote:
    Error reading project file C:\Users\…\Documents\NetBeansProjects\Guestbook\nbproject\ant-deploy.xml: Invalid byte 1 of 1-byte UTF-8 sequence.

    Where is the problem, please?

    Alcarmo

    25 Sep 10 at 4:33 pm

  41. Thank you! Works like a charm!

    Alexander

    27 Sep 10 at 5:25 am

  42. Sundar :
    Hi, I am new to for Java, Can you help with the below error that i encountered while running.
    HTTP ERROR: 500
    Error running javac.exe compiler
    RequestURI=/
    Caused by:
    Error running javac.exe compiler
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:473)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)

    hey i found the same error,. but i already found the solution. i use netbeans 6.8 IDE on win7 OS ok here it is :
    1.go to mycomputer -> properties -> advanced ->environtment variables
    2.add the system variables
    3.fill the variable name PATH
    4.fill the value with “C:\Program Files\Java\jdk1.6.0_21\bin;C:\Program Files\Java\jdk1.6.0_21\bin” without ( ” )

    remember the location is depend where your jdk installed,. hope this can help..
    and many thanks to Rocky :)

    0606406

    27 Sep 10 at 12:42 pm

  43. Great article for netbeans users who are gonna start using GAE; thanks for your great efforts; I am gonna try it soon.

    Raza

    3 Oct 10 at 10:43 am

  44. Great post.
    You can download the plugin from this post for netbeans 6.9.1
    http://www.akvilon-soft.com/archives/19
    the project does not show up if you use the plug-ins above with 691.

    Drew

    19 Oct 10 at 2:03 pm

  45. Great tutorial!!!!!!!! Part2 also!

    Manolis

    23 Oct 10 at 12:06 am

  46. The plugin is available for Netbeans 6.9 at:

    http://kenai.com/downloads/nbappengine/NetBeans69/updates.xml

    Philip

    12 Nov 10 at 1:41 pm

  47. hi

    i am using netbeans ide 6.9. while i am trying to run the application, i’m getting the following error

    HTTP ERROR 500

    Problem accessing /. Reason:

    Error running javac.exe compiler

    Caused by:

    Error running javac.exe compiler
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:509)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:61)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23)
    at com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
    at com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java:80)
    at com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java:254)
    at com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:120)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
    Caused by: java.io.IOException: Cannot run program “javac.exe”: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:832)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:447)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:461)
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:506)
    … 55 more
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    … 65 more
    — Nested Exception —
    java.io.IOException: Cannot run program “javac.exe”: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:832)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:447)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:461)
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:506)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:61)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23)
    at com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
    at com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java:80)
    at com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java:254)
    at com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:120)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    … 65 more

    Caused by:

    java.io.IOException: Cannot run program “javac.exe”: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:832)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:447)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:461)
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:506)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:61)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23)
    at com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
    at com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java:80)
    at com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java:254)
    at com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:120)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    … 65 more

    Caused by:

    java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:832)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:447)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:461)
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:506)
    at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:61)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23)
    at com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
    at com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java:80)
    at com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java:254)
    at com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:120)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

    Powered by Jetty://

    pls help me.

    prabhu

    29 Nov 10 at 1:17 am

  48. Thanks for the tutorial.
    Just would like to add one point –
    I am using NetBeans 6.9.1 so the 6.7 and 6.8 links didn’t work for me. Found a working 6.9 plugin at
    http://www.mozgoweb.com/posts/google-app-engine-plugin-for-netbeans-6-9/

    Faram

    4 Dec 10 at 9:34 am

  49. Hi, on MacOSx I cant open sample project :(

    Rob

    3 Feb 11 at 3:31 am

  50. java.lang.ArrayIndexOutOfBoundsException: 0
    at org.netbeans.modules.j2ee.common.project.ui.J2EEProjectProperties.extractPlatformLibrariesRoot(J2EEProjectProperties.java:384)
    at org.netbeans.modules.j2ee.common.project.ui.J2EEProjectProperties.setServerProperties(J2EEProjectProperties.java:163)
    at org.netbeans.modules.j2ee.common.project.ui.J2EEProjectProperties.updateServerProperties(J2EEProjectProperties.java:241)
    at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties$5.run(WebProjectProperties.java:883)
    at org.openide.util.Mutex.postRequest(Mutex.java:1256)
    at org.openide.util.Mutex.postWriteRequest(Mutex.java:585)
    at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.setServerInstance(WebProjectProperties.java:877)
    at org.netbeans.modules.web.project.WebProject$ProjectOpenedHookImpl.projectOpened(WebProject.java:982)
    at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:84)
    at org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectOpened(UILookupMergerSupport.java:196)
    at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:84)
    at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:1104)
    at org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(OpenProjectList.java:1178)
    at org.netbeans.modules.project.ui.OpenProjectList.doOpen(OpenProjectList.java:700)
    at org.netbeans.modules.project.ui.OpenProjectList.access$1300(OpenProjectList.java:132)
    at org.netbeans.modules.project.ui.OpenProjectList$3.run(OpenProjectList.java:590)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
    [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)

    When i try to create GuestBook sample project, i got above exception. Although GuestBook project is created, it is not seen at my projects but it is seen under my Netbeans Projects folder.

    Ahmet

    6 Feb 11 at 7:36 pm

  51. I had the same problem “unrecognized project; missing plug-in?” when trying to create the Guestbook sample on a minimal 6.9.1 install. Installing the “Java Web Applications” plugin fixes it.

    Mike Causer

    29 Mar 11 at 6:18 pm

  52. [...] a criação de projetos com Eclipse, se você está utilizando o NetBeans pode utiliza a seguinte documentação, a mesma descreve como instalar o plugin em diferentes versões da segunda IDE comentada, de [...]

  53. Thank you everyone for your kind words and constant updates to this blog post. I’m glad it’s helped many of you get projects off the ground. I’ve updated it to show the link for NetBeans 6.9.

    Cheers.

    rocky1138

    9 Apr 11 at 1:10 am

  54. After a long period away from blogging (was acting CEO at a marketing company which took up a lot of my free time) I’ve finally got some schedule set aside for web development projects again (including this blog!)

    I’ve been using Aptana for a while and did not realize NetBeans launched 7.0 in my absence. I will look into updating this blog post (or creating a new one altogether) for 7.0 and Google App Engine.

    Take care :)

    rocky1138

    9 Apr 11 at 1:13 am

  55. I am using NetBean 7.0 & Windows XP
    I failed to to a JAVA_HOME error.
    I was being told JAVA_HOME c:\program files\java\jre6 was not the JDK and that is true, this is the JRE.

    I had the jdk defined in the netbeans.conf
    I also defined JAVA_HOME pointing to the JDK.
    And added the correct jdk to my PATH.

    NetBeans insisted that I was using jre6.

    When I renamed my jdk1.6.0_14 jre6 and updated ny netbeans.conf, JAVA_HOME and PATH, I was able to run the app.

    Why is JAVA_HOME not resetting?

    Robert

    27 May 11 at 1:32 pm

  56. Following up on yesterday’s post I followed suggestions that it could be related to the Microsoft Windows JVM used by IE.

    Microsoft no longer supports the MS JVM and it has become obsolete. There have also been known security issues and it recommended that it be removed and the SUN JVM used as an alternative. Windows XP SP1 does not have the JVM installed.

    Uninstalling the Microsoft Java Virtual Machine (JVM)

    Click on the Start menu, then select the Run option. In the Open: field type in or copy and paste the following text
    RunDll32 advpack.dll,LaunchINFSection java.inf,UnInstall

    Select OK.

    Select Yes when Microsoft warns you that you can’t run or download items on the World Wide Web. Press the Yes button to initiate the uninstall process of the MS JVM.

    Windows will uninstall the files, select YES to restart.

    When the computer has restarted delete the follow folders and directories: c:\windows\inf\java.pnf c:\windows\java c:\windows\system32\wjview.exe c:\windows\system32\jview.exe

    Click on the Start menu, then select the Run option. In the Open: field type in or copy and paste the following text:

    regedit.exe Press the OK button. Navigate to the following keys and delete them:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Java VM HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\AdvancedOptions\JAVA_VM

    I then restored my JAVA_HOME, PATH and Netbeans.conf to use my Sun JDK, restarted my workstation and have no further problems using Google App Engine

    *If you are using Windows NT or 2000 then you may have to replace all occurrences of c:\windows with c:\winnt in the instructions above.

    *If you are using Windows 95, 98, 98SE and ME then you need to replace all occurrences of c:\windows\system32 with c:\windows\system in the instructions above.

    *You may need to install the latest SUN Java for your operating system if Windows JVM is all you have on your workstation

    Robert

    28 May 11 at 10:41 am

Leave a Reply