Eclipse new Web Application Project, can't find my GAE SDK - google-app-engine

I've installed the Google Plugin for Eclipse 3.4 and it seems to work fine.
But when I start a new Web Application Project, it wants me to configure the Google App Engine SDK. I click on Add App Engine SDK, but it doesn't recognize my (valid) GAE SDK. It comes back with "Failed to initialize App Engine SDK at %path", no matter what path I give it.

Are you trying to use the Java or Python SDKs, and are you sure you downloaded the right one?
If Python, remember that the Google Eclipse plugin is currently Java-only.

Does your SDK run if you start dev_appserver from the command line? I had a similar problem once and it was because the script wanted to ask me about automatically checking for updates - once I'd answered the question and exited the appserver I was then able to add it to Eclipse.

Have you checked your "path" environment variable to include
;C:\Program Files\Google\google_appengine\

I had this issue. I downloaded the java zip package and extracted it manually but it turned out that the zip file was either corrupted or messed up during the extraction. Regardless, downloading the package again and re-extracting it fixed the problem for me.

Also, if you are on Python use the PyDev plugin for eclipse and start a Google AE project that way. Use the Google Eclipse plugin for GWT, Java->Js stuff.

Related

How do I find my Google App Engine SDK installation

I am following a tutorial (https://github.com/GoogleCloudPlatform/gradle-appengine-plugin) on using google app engine to deploy from gradle.
It say to point to your local installation of Google App Engine SDK. Except I don't really know how to find this, how would I find this?
You are following an older tutorial. Please use the new tutorial for the new gradle plugin as your point of reference. The new tutorial does not require this information.
In regards to your question location of the SDK, it depends on the Operating System.
You can run the command gcloud info which will detail about the installation. See Installation Properties for more details about the install path.

Which version of Eclipse works with PHP Google App Engine?

I've search in vain for about a month now and I can't get my PHP application pushed to Google App Engine, for the PHP platform. I've got the Java version set up nicely on my computer. I followed the instructions for GAE PHP here: https://developers.google.com/appengine/docs/php/gettingstarted/introduction
..but it's really confusing because it essentially tells me to install Eclipse made for PHP which is Luna, but the only versions of Eclipse that GAE supports is Kepler, Juno and Indigo (https://developers.google.com/eclipse/docs/getting_started), so I'm super confused.
I don't think you can install two different GAE plugins on a standard version of Eclipse (which is what I use for the Java GAE plugin).
I also tried (in vain, but it was worth a shot) to upload my app using my Java plugin/setup and obviously this was a terrible idea because all it does is just print the php script/code to the browser.
Any thoughts, brothas/sistas?
I have figured out how to push php files to GAE. There are essentially 3 ways.
Use appcfg.py. Run following command:
--appcfg.py update helloworld/, where helloworld is replaced by the name of the folder containing your project files. Make sure the path is relative to appcfg.py directory or an absolute path.
--Enter your Google username and password at the prompts.
**2. Use the App Engine Launcher, probably found in C:\Program Files (x86)\Google\google_appengine\launcher. Executable is called GoogleAppEngineLauncher.exe. Simply select the project in Launcher and click Deploy.
**3. Use Git. Create a local repository on your machine. Add a repo to your Github account, and follow these instructions: https://developers.google.com/appengine/docs/push-to-deploy#creating_a_cloud_project
**4. Use PhPStorm. Download PHPStorm for free for 30 days, or buy a student version/whatever version you quality for here: . Then follow these instructions: http://confluence.jetbrains.com/display/PhpStorm/Getting+Started+with+PhpStorm+as+Google+App+Engine+PHP+IDE. The only thing I haven't figured out is #5 - where to find the php-cgi.exe file. I can't provide a path for a file I don't have.
** denotes super easy and I have used successfully.
The Google Plugin for Eclipse is only for Java applications. For PHP applications, you'll want to use the Python/PHP SDK and either the command-line tools or the Launcher UI app for running the development server. You can still use Eclipse for editing your PHP source files.
RE #5 - "I can't provide a path for a file I don't have".
That was also my problem.
They are fond of pointing out that the SDK directory should contain dev_appserver.py and ‘google’ and ‘php’ packages but you don't find those in a simple search cause they are invisible. You have to muck through the installation directory.

Can't import library into Google App Engine project

I use the Google App Engine SDK 1.8.5 with Eclipse 3.8 on Ubuntu.
I want to add the Cloud Storage service to my app, so I downloaded guava-gwt-15.0.jar and appengine-gcs-client-0.3.jar, and put them in my apps /war/WEB-INF/lib/ folder. I also added these jars to the build path in Eclipse.
When I fire up my app in dev mode, it runs fine, at least until I try to access a page relevant to the GCS library. When I do that, I get the following error:
java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
at com.google.appengine.tools.cloudstorage.GcsServiceImpl.<init>(GcsServiceImpl.java:35)
at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:32)
... etc
I cleaned my project and restarted Eclipse multiple times, and still the problem persists. What to do?
In addition to Guava for GWT, you also need the core Guava library (guava-15.0.jar). Download the .jar to war/WEB-INF/lib and add it to you build path as well.

Google App Engine Server in netbeans 7.2 Error Missing value for property jvmargs

I am trying to use Google App Engine on Netbeans 7.2. I get the plugin from http://kenai.com/downloads/nbappengine/NetBeans7.2/ , but when I am running it, I get "Missing value for property jvmargs".
I use sample project, so there shouldn't be any problem at all.
Does anyone know how to fix this?
Check and make sure your PATH environment variable includes the Program Files/Java/jdk.#.#_##/bin directory. If it is pointed at something else it probably won't work that's what my problem was. Make sure your project is using 6 JDK or lower because google app engine does not support JDK 7 at this time.
Found a post somewhere that said to use the plugin for Netbeans 6.7 which does mostly work in Netbeans 7.2.1.
Had to do the following to get it working.
- Goto Plugin->Settings and add
http://kenai.com/downloads/nbappengine/1.0_NetBeans671/updates.xml
- Goto Plugin->Available Plugins search for Google and install all the appengine plugins
- Create a appengine server under services
- Create a new project for an app server other than appengine (i used glassfish)
- After the project is created goto properties->run and switch to app engine
- Add false to appengine-web.xml
I'm running Windows 8, Netbeans 7.2.1, jdk1.7.0_11

gwt to android using phonegap

I need to push my gwt application to android via using phonegap.I followed http://code.google.com/p/gwt-phonegap/wiki/GettingStarted and this tutorial http://blog.ic3man.gr/?p=120 . But when i run the application i get error gwt application must be recompiled .
These are steps i followed
compile the gwt application
2.create a phonegap project in android as stated in Getting started
3. move the war directory of gwt application to android project
4. pointed the .nocache.js file as index for android app.
Please let me know where i am going wrong!
normally when you get such an error your nocache.js file does not match your compiled javascript.
This might happen if you are using maven and eclipse with google eclipse plugin together and haven`t properly selected the right folders for your war folder and the compile folder.
Maybe you need to read: http://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven
I fixed this issue,I use Eclipse IDE,and on right clicking Project option called Google has GWT Compiler,it generates all possible js. Now run the Project,and it worked fine for me in android via Phonegap-gwt ! Hope it helps someone!

Resources