Using Simple XML and getting NoClassDefFoundError in Android
        Posted  
        
            by 
                Berat Onur Ersen
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Berat Onur Ersen
        
        
        
        Published on 2011-08-29T08:38:59Z
        Indexed on 
            2012/11/01
            23:01 UTC
        
        
        Read the original article
        Hit count: 1186
        
I'm trying to use Simple XML to convert my java objects to XML format in my Android application.
I'm getting NoClassDefFoundError at line
Serializer serializer = new Persister();
java.lang.NoClassDefFoundError: org.simpleframework.xml.core.Persister
I have simple-xml-2.6.1.jar in project class path and when I got NoClassDefFoundError I also put these 3 jars in classpath
stax-1.2.0.jar
stax-api-1.0.1.jar
xpp3-1.1.3_8.jar
but made no use.
Still having NoClassDefFoundError.
Any kind of help will be appreciated.Thank you.
© Stack Overflow or respective owner