This is the line the problem occurs
Eclipse does not show any errors. SLC is compiling the library fine too.
Eclipse allows me to import
Any helpfuls tips are highly Appreciated
From the java-source
B4X:
ByteBuffer bb = ByteBuffer.NEW(channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size()));
** Activity (main) Create, isFirst = true **
libdfLoadImages()
File file = new File(/storage/emulated/0,modbau14.pdf);
RandomAccessFile raf = new RandomAccessFile(file, r);
FileChannel channel = raf.getChannel();
ByteBuffer bb = ByteBuffer.NEW(channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size()));
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lnet/sf/andpdf/nio/ByteBuffer;
at de.donmanfred.pdfView$1.doInBackground(pdfView.java:89)
at de.donmanfred.pdfView$1.doInBackground(pdfView.java:68)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 4 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "net.sf.andpdf.nio.ByteBuffer" on path: DexPathList[[zip file "/data/app/b4a.example-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 8 more
Suppressed: java.lang.ClassNotFoundException: net.sf.andpdf.nio.ByteBuffer
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 9 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
Eclipse does not show any errors. SLC is compiling the library fine too.
Eclipse allows me to import
B4X:
import net.sf.andpdf.nio.ByteBuffer;
Any helpfuls tips are highly Appreciated
From the java-source
B4X:
// select a document and get bytes
app.Log("File file = new File("+mpdfPath+" "+mpdfFilename+");");
File file = new File(mpdfPath+"/"+mpdfFilename);
app.Log("RandomAccessFile raf = new RandomAccessFile(file, r);");
RandomAccessFile raf = new RandomAccessFile(file, "r");
app.Log("FileChannel channel = raf.getChannel();");
FileChannel channel = raf.getChannel();
app.Log("ByteBuffer bb = ByteBuffer.NEW(channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size()));");
ByteBuffer bb = ByteBuffer.NEW(channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size()));
app.Log("");
raf.close();
// create a pdf doc
app.Log("create a pdf doc");
PDFFile pdf = new PDFFile(bb);