java - Hi.while developing OCR application in Android i'm getting Error as "Unfortunately OCR test has stopped" in Android emulator -


i've been developing ocr application in android.while running app in emulator i'm getting error "unfortunately ocr test has stopped".so can 1 plz me resolve error...thanks in advance....

the logcat:

08-26 14:24:45.128: d/dalvikvm(548): not late-enabling checkjni (already on) 08-26 14:24:47.988: d/languagecodehelper(548): getocrlanguagename: eng->english 08-26 14:24:48.008: d/languagecodehelper(548): gettranslationlanguagename: es->spanish 08-26 14:24:48.219: d/dalvikvm(548): gc_concurrent freed 261k, 6% free 6680k/7047k, paused 8ms+7ms 08-26 14:24:48.319: w/dalvikvm(548): exception ljava/lang/unsatisfiedlinkerror; thrown while initializing lcom/googlecode/tesseract/android/tessbaseapi; 08-26 14:24:48.319: d/androidruntime(548): shutting down vm 08-26 14:24:48.319: w/dalvikvm(548): threadid=1: thread exiting uncaught exception (group=0x409c01f8) 08-26 14:24:48.369: e/androidruntime(548): fatal exception: main 08-26 14:24:48.369: e/androidruntime(548): java.lang.exceptionininitializererror 08-26 14:24:48.369: e/androidruntime(548):  @ edu.sfsu.cs.orange.ocr.captureactivity.initocrengine(captureactivity.java:715) 08-26 14:24:48.369: e/androidruntime(548):  @ edu.sfsu.cs.orange.ocr.captureactivity.onresume(captureactivity.java:372) 08-26 14:24:48.369: e/androidruntime(548):  @ android.app.instrumentation.callactivityonresume(instrumentation.java:1154) 08-26 14:24:48.369: e/androidruntime(548):  @ android.app.activity.performresume(activity.java:4539) 08-26 14:24:48.369: e/androidruntime(548):  @ android.app.activitythread.performresumeactivity(activitythread.java:2434) 08-26 14:24:48.369: e/androidruntime(548):  @ android.app.activitythread.handleresumeactivity(activitythread.java:2472) 08-26 14:24:48.369: e/androidruntime(548):  @ android.app.activitythread.handlelaunchactivity(activitythread.java:1986) 08-26 14:24:48.369: e/androidruntime(548):  @ android.app.activitythread.access$600(activitythread.java:123) 08-26 14:24:48.369: e/androidruntime(548):  @ android.app.activitythread$h.handlemessage(activitythread.java:1147) 08-26 14:24:48.369: e/androidruntime(548):  @ android.os.handler.dispatchmessage(handler.java:99) 08-26 14:24:48.369: e/androidruntime(548):  @ android.os.looper.loop(looper.java:137) 08-26 14:24:48.369: e/androidruntime(548):  @ android.app.activitythread.main(activitythread.java:4424) 08-26 14:24:48.369: e/androidruntime(548):  @ java.lang.reflect.method.invokenative(native method) 08-26 14:24:48.369: e/androidruntime(548):  @ java.lang.reflect.method.invoke(method.java:511) 08-26 14:24:48.369: e/androidruntime(548):  @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:784) 08-26 14:24:48.369: e/androidruntime(548):  @ com.android.internal.os.zygoteinit.main(zygoteinit.java:551) 08-26 14:24:48.369: e/androidruntime(548):  @ dalvik.system.nativestart.main(native method) 08-26 14:24:48.369: e/androidruntime(548): caused by: java.lang.unsatisfiedlinkerror: couldn't load lept: findlibrary returned null 08-26 14:24:48.369: e/androidruntime(548):  @ java.lang.runtime.loadlibrary(runtime.java:365) 08-26 14:24:48.369: e/androidruntime(548):  @ java.lang.system.loadlibrary(system.java:535) 08-26 14:24:48.369: e/androidruntime(548):  @ com.googlecode.tesseract.android.tessbaseapi.<clinit>(tessbaseapi.java:46) 08-26 14:24:48.369: e/androidruntime(548):  ... 17 more 08-26 14:33:18.479: d/languagecodehelper(576): getocrlanguagename: eng->english 08-26 14:33:18.489: d/languagecodehelper(576): gettranslationlanguagename: es->spanish 08-26 14:33:18.708: d/dalvikvm(576): gc_concurrent freed 263k, 6% free 6682k/7047k, paused 7ms+6ms 08-26 14:33:18.809: w/dalvikvm(576): exception ljava/lang/unsatisfiedlinkerror; thrown while initializing lcom/googlecode/tesseract/android/tessbaseapi; 08-26 14:33:18.809: d/androidruntime(576): shutting down vm 08-26 14:33:18.809: w/dalvikvm(576): threadid=1: thread exiting uncaught exception (group=0x409c01f8) 08-26 14:33:18.838: e/androidruntime(576): fatal exception: main 08-26 14:33:18.838: e/androidruntime(576): java.lang.exceptionininitializererror 08-26 14:33:18.838: e/androidruntime(576):  @ edu.sfsu.cs.orange.ocr.captureactivity.initocrengine(captureactivity.java:715) 08-26 14:33:18.838: e/androidruntime(576):  @ edu.sfsu.cs.orange.ocr.captureactivity.onresume(captureactivity.java:372) 08-26 14:33:18.838: e/androidruntime(576):  @ android.app.instrumentation.callactivityonresume(instrumentation.java:1154) 08-26 14:33:18.838: e/androidruntime(576):  @ android.app.activity.performresume(activity.java:4539) 08-26 14:33:18.838: e/androidruntime(576):  @ android.app.activitythread.performresumeactivity(activitythread.java:2434) 08-26 14:33:18.838: e/androidruntime(576):  @ android.app.activitythread.handleresumeactivity(activitythread.java:2472) 08-26 14:33:18.838: e/androidruntime(576):  @ android.app.activitythread.handlelaunchactivity(activitythread.java:1986) 08-26 14:33:18.838: e/androidruntime(576):  @ android.app.activitythread.access$600(activitythread.java:123) 08-26 14:33:18.838: e/androidruntime(576):  @ android.app.activitythread$h.handlemessage(activitythread.java:1147) 08-26 14:33:18.838: e/androidruntime(576):  @ android.os.handler.dispatchmessage(handler.java:99) 08-26 14:33:18.838: e/androidruntime(576):  @ android.os.looper.loop(looper.java:137) 08-26 14:33:18.838: e/androidruntime(576):  @ android.app.activitythread.main(activitythread.java:4424) 08-26 14:33:18.838: e/androidruntime(576):  @ java.lang.reflect.method.invokenative(native method) 08-26 14:33:18.838: e/androidruntime(576):  @ java.lang.reflect.method.invoke(method.java:511) 08-26 14:33:18.838: e/androidruntime(576):  @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:784) 08-26 14:33:18.838: e/androidruntime(576):  @ com.android.internal.os.zygoteinit.main(zygoteinit.java:551) 08-26 14:33:18.838: e/androidruntime(576):  @ dalvik.system.nativestart.main(native method) 08-26 14:33:18.838: e/androidruntime(576): caused by: java.lang.unsatisfiedlinkerror: couldn't load lept: findlibrary returned null 08-26 14:33:18.838: e/androidruntime(576):  @ java.lang.runtime.loadlibrary(runtime.java:365) 08-26 14:33:18.838: e/androidruntime(576):  @ java.lang.system.loadlibrary(system.java:535) 08-26 14:33:18.838: e/androidruntime(576):  @ com.googlecode.tesseract.android.tessbaseapi.<clinit>(tessbaseapi.java:46) 08-26 14:33:18.838: e/androidruntime(576):  ... 17 more 08-26 14:33:23.109: i/process(576): sending signal. pid: 576 sig: 9 08-26 15:31:18.949: d/languagecodehelper(732): getocrlanguagename: eng->english 08-26 15:31:18.969: d/languagecodehelper(732): gettranslationlanguagename: es->spanish 08-26 15:31:19.189: d/dalvikvm(732): gc_concurrent freed 241k, 6% free 6680k/7047k, paused 7ms+6ms 08-26 15:31:19.289: w/dalvikvm(732): exception ljava/lang/unsatisfiedlinkerror; thrown while initializing lcom/googlecode/tesseract/android/tessbaseapi; 08-26 15:31:19.289: d/androidruntime(732): shutting down vm 08-26 15:31:19.299: w/dalvikvm(732): threadid=1: thread exiting uncaught exception (group=0x409c01f8) 08-26 15:31:19.319: e/androidruntime(732): fatal exception: main 08-26 15:31:19.319: e/androidruntime(732): java.lang.exceptionininitializererror 08-26 15:31:19.319: e/androidruntime(732):  @ edu.sfsu.cs.orange.ocr.captureactivity.initocrengine(captureactivity.java:715) 08-26 15:31:19.319: e/androidruntime(732):  @ edu.sfsu.cs.orange.ocr.captureactivity.onresume(captureactivity.java:372) 08-26 15:31:19.319: e/androidruntime(732):  @ android.app.instrumentation.callactivityonresume(instrumentation.java:1154) 08-26 15:31:19.319: e/androidruntime(732):  @ android.app.activity.performresume(activity.java:4539) 08-26 15:31:19.319: e/androidruntime(732):  @ android.app.activitythread.performresumeactivity(activitythread.java:2434) 08-26 15:31:19.319: e/androidruntime(732):  @ android.app.activitythread.handleresumeactivity(activitythread.java:2472) 08-26 15:31:19.319: e/androidruntime(732):  @ android.app.activitythread.handlelaunchactivity(activitythread.java:1986) 08-26 15:31:19.319: e/androidruntime(732):  @ android.app.activitythread.access$600(activitythread.java:123) 08-26 15:31:19.319: e/androidruntime(732):  @ android.app.activitythread$h.handlemessage(activitythread.java:1147) 08-26 15:31:19.319: e/androidruntime(732):  @ android.os.handler.dispatchmessage(handler.java:99) 08-26 15:31:19.319: e/androidruntime(732):  @ android.os.looper.loop(looper.java:137) 08-26 15:31:19.319: e/androidruntime(732):  @ android.app.activitythread.main(activitythread.java:4424) 08-26 15:31:19.319: e/androidruntime(732):  @ java.lang.reflect.method.invokenative(native method) 08-26 15:31:19.319: e/androidruntime(732):  @ java.lang.reflect.method.invoke(method.java:511) 08-26 15:31:19.319: e/androidruntime(732):  @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:784) 08-26 15:31:19.319: e/androidruntime(732):  @ com.android.internal.os.zygoteinit.main(zygoteinit.java:551) 08-26 15:31:19.319: e/androidruntime(732):  @ dalvik.system.nativestart.main(native method) 08-26 15:31:19.319: e/androidruntime(732): caused by: java.lang.unsatisfiedlinkerror: couldn't load lept: findlibrary returned null 08-26 15:31:19.319: e/androidruntime(732):  @ java.lang.runtime.loadlibrary(runtime.java:365) 08-26 15:31:19.319: e/androidruntime(732):  @ java.lang.system.loadlibrary(system.java:535) 08-26 15:31:19.319: e/androidruntime(732):  @ com.googlecode.tesseract.android.tessbaseapi.<clinit>(tessbaseapi.java:46) 08-26 15:31:19.319: e/androidruntime(732):  ... 17 more 08-26 15:31:24.919: i/process(732): sending signal. pid: 732 sig: 9 

the error occuring at:

edu.sfsu.cs.orange.ocr.captureactivity.initocrengine(captureactivity.java:715) 

ie line 715 of class captureactivity. furthermore, cause listed in log (towards end) start library initiate class tessbaseapi.

assuming there no errors when writing code in eclipse, cause library using isn't added when sent phone or emulator. solve this, need edit project properties include libraries have added project. see adding library/jar eclipse android project.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -