Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can not i run a google app engine project on localhost?

I am using macbook pro for development. I just installed eclipse indigo. Google app engine Java SDK is 1.8.2. I am trying to run an appengine project on localhost. But i am getting the following error:

 2013-08-04 13:14:03.193 java[2146:707] [Java CocoaComponent compatibility mode]: Enabled
 2013-08-04 13:14:03.194 java[2146:707] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
 Usage: <dev-appserver> [options] <app 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=DIR             Overrides where the SDK is located.
  --disable_update_check     Disable the check for newer SDK versions.
  --generated_dir=DIR        Set the directory where generated files are created.
  --jvm_flag=FLAG            Pass FLAG as a JVM argument. May be repeated to
                          supply multiple flags.

I googled a lot but any solution i found did not work for me. I uploaded app on appengine and opened it using url. And its working fine there. Can anybody tell me why is it not working on my mac. Thanks in advance.

like image 354
Piscean Avatar asked Aug 04 '13 11:08

Piscean


People also ask

How do I use Google App Engine locally?

Running your application locallySelect File > Open to open the project you want to run. Browse to the directory containing your project. Select Tools > Cloud Code > App Engine Run on a local App Engine Standard dev server.


1 Answers

The problem occurs when using blank spaces in the project name.

"Run Configurations> Arguments > Program Arguments", insert quotation marks in the project path. i.e.:

--port=8888 --disable_update_check {PATH}\My Project

To:

--port=8888 --disable_update_check "{PATH}\My Project" 
like image 134
dipold Avatar answered Sep 22 '22 11:09

dipold