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
4
votes
6 answers

Performance: Very slow file copying to Windows network using JCIF

I'm trying to copy a file from my local machine to Shared folder in a windows server. This is the function which I used. public static void copyFileUsingJcifs(final String domain, final String userName, final String password, final String…
Nirmal Raghavan
  • 572
  • 7
  • 20
4
votes
2 answers

Using jcifs to copy entire local directory to smb share?

I'd like to copy all contents of a local directory, including subdirectories, to a samba share. Is there an easy way to do this? Something like the SmbFile.copyTo() when source AND target are on SMB.
user2586521
  • 41
  • 1
  • 2
4
votes
1 answer

Android : openConnection() throws IOExeption ( Unable to find default handler for protocol: http )

I have an android application that uses the jcifs library. Every time I try to openConnection() on an URL using HTTP protocol I get an IOExeption with the following message "Unable to find default handler for protocol: http". it works just fine with…
4
votes
1 answer

Hudson Windows service slave launch causes SmbException

We just acquired three new build slaves for Hudson, which are running Windows XP x64. We're having issues deploying to these that we haven't seen before (we have two other XP32 machines already slaved). When we first reboot the server, or just…
leander
  • 8,527
  • 1
  • 30
  • 43
4
votes
3 answers

How to copy file from SMB share to local drive not in domain with JCIFS

I'm trying to copy some remote files to the local drive, in Java, using JCIFS. The remote machine is inside a domain. The local machine is not in a domain. The following code works, but it's really slow (2 minutes for 700Kb... and I have many…
user1922691
  • 119
  • 1
  • 2
  • 6
4
votes
0 answers

Getting jcifs.smb.SmbException: The handle is invalid while copying products

I have written code to copy .dmg,.exe files from a smb server in java. I am using JCIFS library to copy the products, while it is working fine while copying dmg files, it is returning a strange error while copying windows products and…
Max
  • 9,100
  • 25
  • 72
  • 109
4
votes
3 answers

Trying to implement jcifs and UniAddress and getting NoClassDefFoundError?

I am using JCIFS (http://jcifs.samba.org/). My code is simple and taken from the Login.java example: import jcifs.*; import jcifs.smb.*; public class netp { public static void main( String argv[] ) throws Exception { …
rockstardev
  • 13,479
  • 39
  • 164
  • 296
3
votes
0 answers

jcifs.smb.SmbException: Failed to connect: 0.0.0.0<00>/172.16.1.181

I am getting an error while connecting to shared folder on remote machine. I have configured : Shared folder path as : //172.16.1.181/myReports Domain Name : testLab.net User and Password is also provided which are in same domain as 'testlab.net' I…
KDS
  • 43
  • 2
  • 7
3
votes
0 answers

Java:JCifs.jar : Taking a long time to read file over smb

I am using the jcifs library to read the file data from a network system using smb. The code snippet is as below. I am observing a huge performance impact the read API. The read() takes a long time. After reading so many blogs i corrected the code,…
Lokanath Nayak
  • 89
  • 2
  • 10
3
votes
2 answers

Java file last modified returns 0

I have the following code to check the last modification on a file saved on network drive. private long determineLastEdit(ILoaderData file) { String localDir = "c:\\Software\\log\\"; String localPDF = "empty28.pdf"; String originDir =…
Lone Wanderer
  • 160
  • 4
  • 15
3
votes
3 answers

Simplest way to read a file using jcifs

I am trying to read a file from a network share using the external jcifs library. Most sample codes I can find for reading files are quite complex, potentially unnecessarily so. I have found a simple way to write to a file as seen below. Is there a…
Blaine
  • 332
  • 1
  • 4
  • 18
3
votes
0 answers

Get SMB hostnames with Java

I want to make an Android app that browses files in the shared network. Given a PC name, i.e DESKTOP-T6Y766Y I can browse the files (with JCIFS library: new SmbFile("smb://DESKTOP-T6Y766Y/...")). But I want to have the user to choose a PC from the…
TheLogicGuy
  • 682
  • 8
  • 19
3
votes
3 answers

Performance: Android JCIFS file reading is slow

First of all, I saw an existing question (JCIFS: file retrieval is too slow to be usable), but it was for Java, not Android, and none of the suggested answers worked. I created a default project for Android SDK 25 (7.1.1) in Android Studio 2.3,…
Damn Vegetables
  • 11,484
  • 13
  • 80
  • 135
3
votes
2 answers

SmbFile URL path with password having an @

I am using the JCIFS library and I have the samba file URL as SmbFile file = new SmbFile("smb://domain;username:P@ssword@abc.com/share/filename.txt") file.connect Notice the password has an @. Samba file connect is failing giving an…
user3897533
  • 417
  • 1
  • 8
  • 24
3
votes
0 answers

jcifs-krb5: "Server not found in Kerberos database", then it works

I have to connect to a CIFS share from a Java program without mounting it, so I took KerberosAuthExample from jcifs-krb5 and slightly modified it; here is the code: import java.util.HashMap; import java.util.Map; import…
1 2
3
19 20