I'm playing around with an tiny implemetaion of the jcfis stuff. I wrote a library with a few methods (login, getFiles and so on).
I can compile everything without an error in Eclipse, but when I run my test app in B4A I alway get errors. Here is a small output of the logger:
Could not find class 'jcifs.smb.SmbFile', referenced from method thalmy.smbuddy.smbuddy.size
VFY: unable to resolve new-instance 395 (Ljcifs/smb/SmbFile in Lthalmy/smbuddy/smbuddy;
VFY: replacing opcode 0x22 at 0x0000
** Activity (main) Create, isFirst = true **
Shutting down VM
threadid=1: thread exiting with uncaught exception (group=0x401b1760)
FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: jcifs.UniAddress
at thalmy.smbuddy.smbuddy.login(smbuddy.java:41)
at thalmy.samba.main._activity_create(main.java:215)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:113)
at thalmy.samba.main.afterFirstLayout(main.java:84)
at thalmy.samba.main.access$100(main.java:16)
at thalmy.samba.main$WaitForLayout.run(main.java:72)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:132)
at android.app.ActivityThread.main(ActivityThread.java:4123)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)
Force finishing activity thalmy.samba/.main
I have a reference of the external jcfis.jar in Eclipse and exported the lib as all others i've done before. This confuses me, don't know where I made a mistake. Thx for all tips
I can compile everything without an error in Eclipse, but when I run my test app in B4A I alway get errors. Here is a small output of the logger:
Could not find class 'jcifs.smb.SmbFile', referenced from method thalmy.smbuddy.smbuddy.size
VFY: unable to resolve new-instance 395 (Ljcifs/smb/SmbFile in Lthalmy/smbuddy/smbuddy;
VFY: replacing opcode 0x22 at 0x0000
** Activity (main) Create, isFirst = true **
Shutting down VM
threadid=1: thread exiting with uncaught exception (group=0x401b1760)
FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: jcifs.UniAddress
at thalmy.smbuddy.smbuddy.login(smbuddy.java:41)
at thalmy.samba.main._activity_create(main.java:215)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:113)
at thalmy.samba.main.afterFirstLayout(main.java:84)
at thalmy.samba.main.access$100(main.java:16)
at thalmy.samba.main$WaitForLayout.run(main.java:72)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:132)
at android.app.ActivityThread.main(ActivityThread.java:4123)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)
Force finishing activity thalmy.samba/.main
I have a reference of the external jcfis.jar in Eclipse and exported the lib as all others i've done before. This confuses me, don't know where I made a mistake. Thx for all tips