03-13 08:10:19.621: E/AndroidRuntime(800): java.lang.NoClassDefFoundError:
com.sun.jersey.api.client.Client
Why im getting this exception?Though i have added jars.
03-13 08:10:19.621: E/AndroidRuntime(800): java.lang.NoClassDefFoundError:
com.sun.jersey.api.client.Client
Why im getting this exception?Though i have added jars.
Add the used libraries in your application manifest:
<uses-library android:name="your library" />
Edit:
btw. make sure that you have added jersey-core to your classpath too, as it is a dependency for com.sun.jersey.api.client.Client.
You should try this:
Remove all references to the JAR in your project from Java project -> properties -> Java build path -> libraries
Create a libs
folder if not exist at the root of your project Copy
the JAR into the libs
folder.
If still not running . Right click your project > Android Tools > Fix Project Properties
clean your project
and run. it will work
Looks like you have added jar files into project but haven't added them as Library, just follow these steps,