31

I want to try the Google Eclipse plug-in for the Google App Engine, but I get stuck in the tutorial...

I want to start the web application from the Google tutorial, but when I click on "RUN AS > Web Application", I only see this message on the console:

Usage: <dev-appserver> [options] <war directory>

Options:
 --help, -h                 Show this help message and exit.
 --server=SERVER            The server to use to determine the latest
  -s SERVER                   SDK version.
 --address=ADDRESS          The address of the interface on the local machine
  -a ADDRESS                  to bind to (or 0.0.0.0 for all interfaces).
 --port=PORT                The port number to bind to on the local machine.
  -p PORT
 --sdk_root=root            Overrides where the SDK is located.
 --disable_update_check     Disable the check for newer SDK versions.

What's the problem? It seems like the command to start the server is wrong, but I haven't edited it... can someone help?

Kara
  • 6,115
  • 16
  • 50
  • 57
Thomas Uhrig
  • 30,811
  • 12
  • 60
  • 80
  • I had the same problem but i finded this [Why can not i run a google app engine project on localhost?](https://stackoverflow.com/a/22131445) – Andres Prada Dec 04 '14 at 19:04

3 Answers3

76

It is because your launch configuration file (location: WORKSPACE/.metadata/.plugins/org.eclipse.debug.core/.launches)is corrupt. All you need to do to solve this problem is to delete the existing launch configuration (in Run > Run configurations)

GoYun.Info
  • 1,356
  • 12
  • 12
1

Check if your Eclipse Project or GAE SDK has spaces in the path.

TWiStErRob
  • 44,762
  • 26
  • 170
  • 254
0

Some additional information to what's already been said.

You need to install "m2eclipse" otherwise you will not have the "run as" option.

Martin Magakian
  • 3,746
  • 5
  • 37
  • 53