pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gls prasad <glsprasad2...@yahoo.com.INVALID>
Subject java.lang.NoClassDefFoundError: org.apache.pdfbox.pdmodel.PDDocument in Android Studio
Date Fri, 11 Sep 2015 05:38:59 GMT
Hi,

I am getting an error (NoClassDefFoundError:
org.apache.pdfbox.pdmodel.PDDocument) during Runtime in Android Studio
when I used Pdfbox to create a Pdf. I am using jars pdfbox-app-1.8.10.jar and commons-logging-1.2.jar.

But it works fine in eclipse. It would be great if you could let me know what is the solution
for this issue.


Error Details:

09-10 17:23:11.309    1970-1970/com.example.admin2.myapplication
E/AndroidRuntime&#65109; FATAL EXCEPTION: main
    Process: com.example.admin2.myapplication, PID: 1970
    java.lang.NoClassDefFoundError: org.apache.pdfbox.pdmodel.PDDocument
            at
com.example.admin2.myapplication.DisplayMessageActivity.onCreate(DisplayMessageActivity.java:95)
            at android.app.Activity.performCreate(Activity.java:5990)
            at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
            at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
            at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
            at android.app.ActivityThread.access$800(ActivityThread.java:151)
            at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.app.ActivityThread.main(ActivityThread.java:5257)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

with rgds, 
PRASAD
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message