Questions tagged [jcifs]

JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java.

JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java. CIFS is the standard file sharing protocol on the Microsoft Windows platform (e.g. Map Network Drive ...). This client is used extensively in production on large Intranets.

290 questions
6
votes
3 answers

Concurrent read/write file in Java

I have to read a text file from my Java application. The file contains many rows and this file is updated every X minutes from an external unknown application that appends new lines to the file. I have to read all the rows from the file and then I…
Roberto Milani
  • 760
  • 4
  • 20
  • 40
6
votes
1 answer

JCIFS Access is denied

I'm using JCIFS to write to a windows share. This has been working fine. All of a sudden it stopped working and I'm now getting a jcifs.smb.SmbAuthException: Access is denied. exception. I know that my credentials are good as I can connect using smb…
cloudwalker
  • 2,346
  • 1
  • 31
  • 69
6
votes
2 answers

JCIFS - connection breaks

I need to connect to a UNC "directory" and to create a file in that directory. I found this entry on stackoverflow : access to file using Java with Samba JCIFS. A good thing is that it works well on my system, but when I put the program to the…
user2680083
  • 125
  • 1
  • 2
  • 10
6
votes
4 answers

Slow file listing with jCIFS on Windows

jCIFS is a great library for connecting to SMB shares on Android, and it works excellently with almost all setups I've tested with. I do, however, experience incredibly slow performance when using the SmbFile.listFiles() method on Windows-based…
Michell Bak
  • 13,182
  • 11
  • 64
  • 121
6
votes
2 answers

How do I use JCIFS with apache VFS to access an SMB URL?

I am trying to access a folder on my local computer using an smb URL. my project is using the jars: commons-vfs2-2.0.jar and jcifs-1.3.17.jar (and all the other required jars). The code in it's entirety is: public static void main(String[] args)…
Michael Omer
  • 71
  • 1
  • 3
5
votes
1 answer

List all files and directories with jcifs

I'm trying to list all files and directories from samba. So I create a SmbFile : SmbFile smb = new SmbFile("smb:\\\\10.0.4.3\\sharedFiles\\") I am able to create new files, but I can not list files and directories. I'm getting value 2 from…
Juan
  • 544
  • 6
  • 20
5
votes
2 answers

Android upload to network drive(samba share) performance issue

i have a problem when I upload a picture of 100kb to samba share with JCIFS from my tablet, it takes about 10-20 minutes (before I changed my buffer from 1024 to 20971520 it took almost 6 hours) but it does not give any effect anymore to increase…
5
votes
1 answer

KSoap-Android\JCIFS sends empty HTTP post

I created an NTLM authenticating SOAP client based on KSOAP-Android and JCIFS. The implementation looks something like this: public class NtlmServiceConnection implements ServiceConnection { public NtlmServiceConnection(final SoapConnectionInfo…
Adam Driscoll
  • 9,395
  • 9
  • 61
  • 104
5
votes
2 answers

How to move (not copy) a file with JCIFS?

I'm wondering how I can move a file from one folder to another on an SMB share, using JCIFS. First, there is no move() method whatsoever. Then, this approach: SmbFile smbFromFile = new SmbFile("smb://...pool/from-here/the-file.pdf", auth); SmbFile…
peter_the_oak
  • 3,529
  • 3
  • 23
  • 37
4
votes
2 answers

How to access share folder in windows through android and read files

I need to connect from my Android phone to a Windows PC share and access files. I saw some sample apps in Android market that access share folders using smb/samba. But I have no idea about how to create an app like that.
rwe
  • 177
  • 1
  • 1
  • 11
4
votes
1 answer

Spring security 3 + JCIFS ntlm

Can they work together? Some project sample would be great. I have a web-app on Spring3. And i need to implement NTLM. Spring stopped NTLM support in 3rd version. Is there any possibilities to implement it? Looking for a sample project.
StrekoZ
  • 618
  • 6
  • 12
4
votes
2 answers

how determining file size in term of number of characters?

Reading file using java and jcifs on windows. I need to determine size of file, which contains multi-byte as well as ASCII characters. how can i achieve it efficiently OR any existing API in java? Thanks,
Sach
  • 659
  • 8
  • 20
4
votes
2 answers

Copy file using last smb jcifs-ng jar

Trying to move from jcifs to jcifs-ng (the latest jar jcifs-ng-2.1.2.jar) to copy files to/from remote. My code using old jcifs: System.setProperty("jcifs.smb.client.responseTimeout", "10000"); …
Lubov Shilin
  • 133
  • 2
  • 10
4
votes
0 answers

SMB or WebDAV protocol?

I am trying to understand the differences between WebDAV and SMB. What are the advantages and disadvantages of both and is there any rule of thumb when to implement which of the two.
user9051123
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

Tomcat 8.5.15 unable to find jcifs.jar

Recently we upgraded from apache-tomcat-7.0.76-x64 to apache-tomcat-8.5.15-x64 The installation is the standard installation on windows the additional jars we are putting in libs are : axis.jar -- a Apache eXtensible Interaction System a XML based…
Deepak Pandey
  • 618
  • 7
  • 19
1
2
3
19 20