File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Restlet exception: NoSuchFieldError" Watch "Restlet exception: NoSuchFieldError" New topic

Restlet exception: NoSuchFieldError

Jason Bock

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
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: 1183

A Restlet forum is available to you.


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

Joined: Dec 27, 2008
Posts: 19
Thanks guys.
I agree. Here's the link:
subject: Restlet exception: NoSuchFieldError
jQuery in Action, 3rd edition