NoClassDefFoundError means that some third-party of RestClient is missing. The third parties of the RestClient are: org.apache.wink:wink-client:jar:1.0-incubating +- org.apache.wink:wink-common:jar:1.0-incubating:compile | \- javax.ws.rs:jsr311-api:jar:1.0:compile +- org.slf4j:slf4j-api:jar:1.5.8:compile +- org.slf4j:slf4j-simple:jar:1.5.8:compile +- javax.xml.bind:jaxb-api:jar:2.1:compile | \- javax.xml.stream:stax-api:jar:1.0-2:compile +- com.sun.xml.bind:jaxb-impl:jar:2.1.4:compile +- javax.activation:activation:jar:1.1:compile
So if you are running Java 6, you are probably missing Slf4j. If you are running Java 5, you may be also missing Jaxb and activation. Hope it helps, Michael. On Thu, Dec 17, 2009 at 9:35 AM, Burg, Yaron <[email protected]> wrote: > Hi, > > > > My name is Yaron and I’m currently working on a project which involves the > usage of REST API calls. > > I’m trying to use Wink client from Java , using Eclipse (java application > project or servlet). > > I added wink-client, wink-commons and jsr311-api to the referenced > libraries and the dependency in pom.xml. The code passes compilation. > > Currently I use the source code from the QA Defects example. > > > > However, when I execute it, I always get > > java.lang.NoClassDefFoundError: org/apache/wink/client/RestClient > > > > Have you ever heard of this error? Am I doing something wrong? > > > > Thanks, > > Yaron. > > > > > > > > > > *Yaron Burg*, Near Horizons > > [email protected] > > direct +972-3-5399290 mobile +972-54-4497022 fax +972-5391617 > 19 Shabazi Street, POB 170, Yehud 56100 Israel > > > > [image: cid:[email protected]]<http://www.hp.com/go/software> > > >
