*
The moose likes Web Services and the fly likes Restlet exception: NoSuchFieldError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Restlet exception: NoSuchFieldError" Watch "Restlet exception: NoSuchFieldError" New topic
Author

Restlet exception: NoSuchFieldError

Jason Bock
Greenhorn

Joined: Dec 27, 2008
Posts: 19
Trying to setup restlet for the first time, upon trying to run the standalone First Steps example provided on their site I got the following error:



I downloaded the zip from their site and imported all the jars, the code itself was copy & pasted directly from their site. Any suggestions?
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I think your problem is that you have all the JARs included in your project. Remove all JARs except the following:
com.noelios.restlet.jar and org.restlet.jar
Try compiling your project and, if compilation fails, add JARs as needed.
Do not add JARs you do not need - for instance, the error you get is related to the Restlet-Google Web Toolkit integration, something you do not need for the example program.
Best wishes!
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1176
Jason,

A Restlet forum is available to you.

Regards,
Dan

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Jason Bock
Greenhorn

Joined: Dec 27, 2008
Posts: 19
Thanks guys.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Restlet exception: NoSuchFieldError