• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Restlet Webservies for Android App

vcakula

Lurker
Hi every one,

I have written some web services using restlet for a website. I want to use the same web services for my Android App.

I include the classes of web services as Android Library project, every thing works fine till then. And if I tried to include the web services as jar files and used them, it shows exception as class not found exception.

I created the jar files with normal javac complication using ant.

How can I include jar files and use these jar files..

Regards,
VIJAY
 
You shouldn't be including servelets in an Android project... You should be hosting them on a server (hence the name servelet) and calling them from the android client.
 
Yeah I understand that.
But how do you add third party jars to android project. I have done it by creating libs folder and adding those jars in Build Path. But When I use them and run my app in a emulator AVD18 then I get class definitions not found.


07-20 12:55:04.117: W/dalvikvm(622): threadid=1: thread exiting with uncaught exception (group=0x40a13300)
07-20 12:55:04.117: E/AndroidRuntime(622): FATAL EXCEPTION: main
07-20 12:55:04.117: E/AndroidRuntime(622): java.lang.NoClassDefFoundError: edu.common.domain.BugReport

Can someone help me on this.
 
Back
Top Bottom