Android Question jcifs-ng and Java Exception

joergb

Member
Licensed User
Longtime User
hello

I startet using jcifs-ng with a simple app to copy a File from the Android to the Server.
.
The example App runs ok, but my own app crashs by the following Java Exception:
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/slf4j/LoggerFactory;
at jcifs.config.BaseConfiguration.<clinit>(BaseConfiguration.java:51)
at de.donmanfred.SMBClientwrapper$1.run(SMBClientwrapper.java:67)
at java.lang.Thread.run(Thread.java:919)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
... 3 more


and here the Code
B4X:
Sub btAll_Click
    Dim val As String
    
    CopyAll = 1
    CopyIdx = 0

    smbUrl = "smb://" & smbServer & "/" & smbFreig & "/trans/"
        
    smbf.Initialize("smbf", "", smbUser, smbPassw, smbUrl) ' <<<<<< here the app chrashes
 
    If CopyIdx < lvFile.Size Then
        val =  lvFile.GetItem(CopyIdx)
       CallSubDelayed3(Me, "start_upload", val, CopyIdx)
   End If
  
End Sub

Have I use it as a service, like the example ?

Does anyone have an idea to get this work ?

Thanks in advance
 

DonManfred

Expert
Licensed User
Longtime User

You have added
B4X:
#AdditionalJar: slf4j-api-1.7.25.jar
#AdditionalJar: bctls-jdk15on-1.58.0.0.jar
#AdditionalJar: bcprov-jdk15on-1.59.jar
to your mainmodule?
 
Upvote 0
Top