Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

GDataRequest$RequestType not found in enum com.google.gdata.client.Service.GDataRequest.RequestType

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using JDeveloper as an IDE to run the sample code provided by http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html#GettingStarted.

But while compiling the application I am getting following error.



Error(22,29): GDataRequest$RequestType not found in enum com.google.gdata.client.Service.GDataRequest.RequestType in class com.google.gdata.client.GoogleService in class com.google.gdata.client.calendar.CalendarService in class project1.CalendarTest

I have already imported the LIB files provided in LIB folder of sample code nad source also.
Still not able to resolve the error.
Can anybody help me why this error is coming? and how to remove it?

Its urgent!
 
vedika ashtekar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ran the almost same code on Eclipse and its running perfectly fine.

If it's an IDE problem then IDE specific patch or Solution should exists..

Guys if you know please guide me !
 
vedika ashtekar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
huh!

My colligue got the answer with the help of shishir.srivastava@gmail.com's post!
http://www.mail-archive.com/google-help-dataapi@googlegroups.com/msg00984.html

shishir asked to change the Jdeveloper settings as follows :
1. right click on project.
2. click on Project properties.
3. change its compiler settings - Click the "Use Javac" checkbox.
4. click OK.

and build the project.
It will get compile successfully!

Thanks to Shishir Shrivastava !

jdeveloper-settings.jpg
[Thumbnail for jdeveloper-settings.jpg]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!