tags:

views:

291

answers:

1

I want to develop a program using the Java MSN Messenger library (JML). I can not solve a problem where the following exeception is thrown.

ERROR/AndroidRuntime(312): FATAL EXCEPTION: Thread-21

**ERROR/AndroidRuntime(312):     java.lang.ExceptionInInitializerError
ERROR/AndroidRuntime(312):     at net.sf.jml.protocol.incoming.IncomingUSR$1.getLoginTicket(IncomingUSR.java:198)
ERROR/AndroidRuntime(312):     at net.sf.jml.protocol.incoming.IncomingUSR$1.run(IncomingUSR.java:247)

ERROR/AndroidRuntime(312):     Caused by: java.lang.NoClassDefFoundError: sun.security.action.GetPropertyAction
ERROR/AndroidRuntime(312):     at net.sf.jml.util.StringUtils.<clinit>(StringUtils.java:58)
ERROR/AndroidRuntime(312):
                     ... 2 more**

How to fix it?

+2  A: 

You are trying to use Java MSN Messenger library. This library was created for J2SE/J2EE and can not be used on Android.

As you can see net.sf.jml.util.StringUtils is referencing sun.security.action.GetPropertyAction which is not available on Android.

Peter Knego
what library can use for Android?
Watcharapong Hongsaeng
i want to use library for android
Watcharapong Hongsaeng