Consuming java web service in android application -


as shown in below screenshot, have created web service(in java) , client application(android app) following this article.

i got build successful message after creating ant build file under section create web service client in article , under client app 8 files generated shown in image(2) below.

now when write hellowebservice service = new hellowebservice(); in client app, app crashes , following exception:
java.lang.noclassdeffounderror: com.mycompany.service.client.hellowebservice

am doing wrong?

any appreciated.


screenshot

i don't know environment exception lead hellowebservice class not found @ run time. means have not placed jar containing 'hellowebserice' class in classpath when run application. surely have jar when compile code compiles unfortunately not found jvm @ run time. try putting jar in classpath , should good.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -