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?
I find a solution, i hope this can help to someone.
You must to recompile jml with a little change in net.sf.jml.util.StringUtils.java
1º Download the code of jml here:
2º And then apply this patch
(i recomend download the code with a svn program and then aply the patch with tolstoi or other svn program )
When you have the code parched, create a .jar (right click in the project / export ) and then add this .jar to your msn project.
(solution based in : http://sourceforge.net/projects/java-jml/forums/forum/405891/topic/4093769 )