0

I am using the ksoap2-android-2.5.2 for SOAP webservices Login like this

HttpTransportBasicAuth aht = new  HttpTransportBasicAuth(URL, username , pass);

When I run the program I get the following exception.

02-08 16:57:27.014: E/AndroidRuntime(331): java.lang.NoClassDefFoundError:
                                                javax.microedition.io.Connector

How can I get that class to our KSOAP2 Library?

Venkat
  • 343
  • 1
  • 7
  • 17
  • 1
    possible duplicate http://stackoverflow.com/questions/3072683/java-lang-noclassdeffounderror-javax-microedition-io-connector – Sergey Benner Feb 21 '12 at 11:40

3 Answers3

1

This is error can also be raised if you have more than one Activity and if you try to access one Activity without Registering in the AndroidManifest.xml file. So make sure that you have registered all your Activity class under this xml file. eg. if u have an activity called Act you will register as

<application ...............>
   ----------
   ----------
    <activity android:name=".Act2" /> here goes your registration.    
</application>
DaveShaw
  • 52,123
  • 16
  • 112
  • 141
Ashu
  • 11
  • 1
0

This class is not in android, its in j2me.

jeet
  • 29,001
  • 6
  • 52
  • 53
0

You are probably not using the correct kSoap package for Android.

See this post: java.lang.NoClassDefFoundError: javax.microedition.io.Connector and the following link

Community
  • 1
  • 1
Sly
  • 2,105
  • 5
  • 22
  • 28