Introduction
This page demonstrates how to create a new Google Data template of your choice in a few steps using the Google Data plug-in.
Steps to create a new Google Data Template
For demonstration purpose, we will create a new Google Documents template which uses the Google Documents List Data API.
- Step 1: Go to File --> New --> Others
- Step 2: A new project wizard will open up. Scroll until you find a folder named 'Google Data'. Expand it and click on 'Google Data Project' and then click next.
- Step 3: A Google Data Project wizard page will open up which will ask for some information to create a new Google Data Project.
- Step 4: We will now enter appropriate information.
- Enter a valid project name. Say: My Document Project
- Select the 'Documents' template from the template list. You can see a corresponding description of the selected template next to the template list.
- Now, click on the 'Browse' button to select a directory containing the GData Java Client Lib files i.e. something like .../gdata/java/lib
- Now, since the description says that the 'Documents' template will require external dependencies, we need to select either the 'Download dependencies to' option or the 'Select Location' option. If you do not have the required dependencies on your system, you can select to download them.
- Step 5: After filling in the required information, click on 'Finish' button.
- Step 6: A new Java project is created in the workspace with the project name you provided. The Documents template named 'Documents.java' will be opened for editing. It will have instructions on how to execute it. All the required dependencies are referenced as 'Referenced Libraries'. If you are a new Eclipse user, click here to know how to set the execution arguments.
in step 2 when I click next an error message occurs : "The selected wizard could not be started.
"Please file it as an issue with details of the problem, OS and Eclipse version. We'll carry it forward from there.
I use ubuntu 9.04 and eclipse 3.2.2 eclipse works fine and i'm trying to install the google data plug-in following your instruction. but after restart eclipse there isn't "google data" folder in "new->other" menu. what is the problem? can you help me? there is a screenshoot
thank you.
This plug-in requires Eclipse v3.3 or above. The requirements are listed on the Installation wiki.
Please, i need help. When i tried to execute the class, i had the follow error message:
Thanks for help
A gdata dependency on two jars found in the "deps" folder of the java gdata download was introduced a month or two ago. Add these two jars to your classpath and you will be good to go. The particular Maps class you are looking for is found in the google-collect-1.0-rc1 jar, which is one of those two dependencies.
Cheers.
Hi,
Exception in thread "main" java.lang.NoClassDefFoundError?: com/google/common/collect/Maps
This is My Classpath: (both UserVariables? and System Variables are set)
I tried giving the Classpath till the Jars as below: %JAVA_HOME%\lib;D:\GDataApp\gdata-samples.java-1.39.0\gdata\java\deps;D:\GDataApp\gdata-samples.java-1.39.0\gdata\java\deps\jsr305.jar;D:\GDataApp\gdata-samples.java-1.39.0\gdata\java\deps\google-collect-1.0-rc1.jar;.;
I also tried copying the google-collect-1.0-rc1.jar and jsr305.jar onto my External Jars Location(which we give at the time of creating the Project). Even then also i got the same problem.
Could you please suggest me some solution for this?
Thanks in advance, Ravindanath Y
i dont know what is the problem
everytime i try to run this i found this error
Exception in thread "main" java.lang.NoClassDefFoundError?: com/google/common/collect/Maps
Caused by: java.lang.ClassNotFoundException?: com.google.common.collect.Mapsppppplllllllllllllllllllllllllllllllllllllz help
I'm having the same problem too. Within Program Arguments are you passing the following arguments: arg0? = username arg1? = password. Reading Eclipse for dummies it says that you can put the username and password seperated by a space in the Program arguments and it will automatically associate arg0? with the first entry and arg1? with the second entry.
Hi, You seems to be missing the some core components in your path. This includes "google-collect-1.0-rc1.jar" and "jsr305.jar". Ensure you have these two required jars, rebuild and try again...
They are both available within the "deps" folder of the "Google Data Java Client Library". You can get the latest gdata library here... http://code.google.com/p/gdata-java-client/downloads/list
Hi, Every time I run,I found this error: Exception in thread "main" java.lang.NoClassDefFoundError?: com/google/common/collect/Maps
Caused by: java.lang.ClassNotFoundException?: com.google.common.collect.MapsI run this project as "java application", could you show me how to configure 'run configurations', thanks!
I have resloved this question, lack of google-collect-<version>.jar, "add external jars" this jar, it works well.
Thanks weiwenxing..
Hi I am new to java, tried this and Exception in thread "main" java.lang.NoClassDefFoundError?: com/google/common/collect/Maps
Caused by: java.lang.ClassNotFoundException?: com.google.common.collect.MapsHi I am a beginner for java, When I run this template, Exception appear:
Getting Documents entries...
com.google.gdata.util.ResourceNotFoundException?: Not Found <HTML> <HEAD> <TITLE>Not Found</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1>Not Found</H1> <H2>Error 404</H2> </BODY> </HTML>
What can I fix it?
Hola, me llamo jim. El tutorial esta perfecto, pero me sale un error, espero y me ayuden. En la cosola me aparese lo siguiente: Exception in thread "main" java.lang.NoClassDefFoundError?: com/google/common/collect/Maps
Espero y me ayuden
for vinkoiipm just change the default URI of the example by https://docs.google.com/feeds/default/private/full
it's work for me.
Thank a.martinexhighes! I was getting same error as vinkoiipm. your solution fixed.
I have added the two jars you suggested, but nothing changed, I still continue to get this error: Exception in thread "main" java.lang.NoClassDefFoundError?: com/google/common/collect/Maps
Caused by: java.lang.ClassNotFoundException?: com.google.common.collect.MapsAny help please?
I want to say Chinese ! But afraid your don't understand ~I can't speak English
sometimes a quick 1,2,3 tutorial does wonders when you're trying to rush through. I have managed to run this tutorial thanks to the initial instructions supplemented by helpful commentary, but a quick run-through is available at chriscargile.com/2010/gdata.html, in case someone's stuck.
I have to do application on Android's mobile, which application is PicasaWebService? but I complie many error commands: - The First: PicasaWebService? myService = new PicasaWebSerivce?("google-PicasaWeb?-2.0"); - The Seconds: Service service = new Service(); - The Thirds: GoogleService? service = new GoogleService?("lh2","google-picasaWebService-2.0"); ............. All commands always be error is:
Exception in thread "main" java.lang.NoClassDefFoundError?: com/google/common/collect/Maps
Caused by: java.lang.ClassNotFoundException?: com.google.common.collect.MapsI searched many on internet but didn't resolve, I hope people to help me. Thankyou very much
Exception in thread "main" java.lang.NoClassDefFoundError?: com/google/common/collect/Maps
Caused by: java.lang.ClassNotFoundException?: com.google.common.collect.MapsA gdata dependency on two jars found in the "deps" folder of the java gdata download was introduced a month or two ago. Add these two jars to your classpath and you will be good to go. The particular Maps class you are looking for is found in the google-collect-1.0-rc1 jar, which is one of those two dependencies.
If you are using Eclipse, on your "Referenced Libraries" add external jars to the list and you will be okay
Hello,
I continue to get the following error when using this example:
/DocAction??action=unsupported_browser&gsessionid=lMySzcbpHNgKz34s230
Has anybody else experienced this.
Niall
help
Hi...I'm trying to implement this using Eclipse 3.6 and it will not showing me some option at time of installation. May be due to this I'm not able to install it properly. Could some one help me to find out solution of this.
Thanks in advance.
I've create the project following this thread but i got an error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException?: 0
Somebody help me, please.
Hey, I'm getting that same error everyone else is getting.
Caused by: java.lang.ClassNotFoundException?: com.google.common.collect.Maps
I have those libraries uploaded too. google-collect-1.0-rc1.jar and jsr305.jar along with all the other ones I'm suppose to be referencing. This is the line where it's crashing.
CalendarService? myService = new CalendarService?("exampleCo-exampleApp-1");
com.google.gdata.util.ResourceNotFoundException?: Not Found Document not found.
include \gdata\java\deps\guava-11.0.2.jar into your dependencies and could run...