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
0
votes
1 answer

How to set up a DosFileFilter in JCIFS with multiple extensions as wildcard?

In order to use some files from a network shared folder I'm moving to JCIFS. So far I've done the following as a test to list the files I need (taken from this example) public class ListDirectoryContent extends DosFileFilter { int count = 0; …
Alfabravo
  • 7,493
  • 6
  • 46
  • 82
0
votes
2 answers

Access Windows shared network files from Android app

I'm trying to access a shared file from my app, e.g //172.24.9.13/c/2012xp.mdb By doing: new File("//172.24.9.13/c/2012xp.mdb"); it doesn't work. I found the jCIFS library, and creating new SmbFile("//172.24.9.13/c/2012xp.mdb"); it works, but the…
Emaborsa
  • 2,360
  • 4
  • 28
  • 50
0
votes
0 answers

How to open a file by clicking a link from a jsp which is in a protected share folder?

I have tried to write a file on a protected share folder using JCIFS (SmbFile) concept. Following is the code snippet that I've tried and successfully write a file on a protected folder: String username = "username"; String password =…
IMJS
  • 863
  • 2
  • 13
  • 25
0
votes
1 answer

tomcat 7 accessing mapped drive

I am aware that similar problems are asked frequently. But the solutions do not work form me. I did try jcifs.jar (version 1.3.17). Here I found that it is extremly slow and for some reason simply hangs sometimes. Since I am desperate enough I could…
Martin
  • 584
  • 3
  • 12
0
votes
1 answer

Using Java to query Active Directory to find available CIFS shares

Here is the scenario: I have several CIFS partitions which AD-based users can mount and use to access their files etc. Now we have a requirement to expose this to users via Java-based Web application. So ideally when the users log in; he/she should…
Cheezo
  • 761
  • 9
  • 24
0
votes
0 answers

Android Smb directory list force close

This is a weird problem I have here. I am using SmbFile from jcifs suite in with my android app. I have done this plenty of times. I currently debug most of my apps with a Droid X but just recently got a new Droid Razr HD. I built a few new apps…
itgeek25
  • 203
  • 2
  • 7
  • 18
0
votes
1 answer

Code working on PC, not on phone

I'm trying to fetch a list of files from a Windows share with jCIFS library. I have the following code from the examples from the jCIFS site. try { String p = "smb://domain.tld/path/to/the/folder/"; NtlmPasswordAuthentication auth = new…
MikkoP
  • 4,864
  • 16
  • 58
  • 106
0
votes
2 answers

NoClassDefFoundError using jcifs library

I have a Maven project (ejb container) where I need to use the jcifs library. I made the entries in pom.xml like: jcifs jcifs 1.3.17
Alex
  • 2,213
  • 4
  • 32
  • 44
0
votes
0 answers

Display Logged in user name without AJAX call

I am developing a simple rest based spring application and trying to keep UI and REST services as a separate directory but both deployed under same tomcat instance. REST services returns JSON as response (no Spring MVC here, ResponseEntity ) There…
ukanth
  • 2,718
  • 5
  • 28
  • 38
0
votes
2 answers

JCIFS NTLM Authentication for HTTP Connections on GlassFish (or any servlet container)

I've created a Java class that connects to an IIS website requiring NTLM authentication. The Java class uses the JCIFS library and is based on the following example: Config.registerSmbURLHandler(); Config.setProperty("jcifs.smb.client.domain",…
Allan Lykke Christensen
  • 1,337
  • 2
  • 14
  • 21
-1
votes
2 answers

Pushing multiple files to smb share jcifs from local folder

How we can push multiple files from our local folder to smb share folder using java. I can do with my single file using smbFile and it is working. I am looking for pushing multiple file push to smb share. Any reference links and sample code would be…
Intensity
  • 1
  • 1
-1
votes
2 answers

Write java.io.InputStream object to smb file

One of my Java Utility class (PGP Encryption utility) reads java.io.File (which is in encrypted format) and converts it to java.io.InputStream object (basically decrypts the file and converts as java.io.InputStream object at the end of the method) I…
User_1940878
  • 321
  • 1
  • 6
  • 25
-1
votes
1 answer

How to list files from sharedDirectory?

I tried below code for access network shared directory.But it worked if credentials not needed. Once i have to pass the credentials it may be worked. But i don't how to pass credentials for sharedDrive in following code. File f = new…
Mister X
  • 3,406
  • 3
  • 31
  • 72
-1
votes
1 answer

File transfer through SMB protocol android error

I want to transfer file from my app to wireless samba device.I written follwing code but not work.Device having ip=192.168.1.2:8181 with Username=Admin and Password=[empty].While the device show the complete files when i try to access it from my pc…
Lalit Jadiya
  • 213
  • 4
  • 14
-1
votes
1 answer

how to open a SmbFile, just like we do whith File we use Desktop.getDesktop().open(new File(" ") )

how to open a SmbFile, just like we do whith File we use Desktop.getDesktop().open(new File(" ") ) any idea !!
Youssef
  • 46
  • 6
1 2 3
19
20