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.
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
Post a Comment