This is more an android question, i.e. getting your jar to be part of the package that will be loaded onto your device. Maybe try building your app with Android Studio instead:
https://developer.android.com/sdk/index.html

Additional to that, PDFBox doesn't work on android anyway. Try this instead:
https://github.com/Birdbrain2/PdfBox-Android

Tilman

Am 11.09.2015 um 07:38 schrieb gls prasad:
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﹕ 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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to