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.

275 questions
33
votes
2 answers

Is JCIFS incompatible with windows 2008 R2 domain controllers?

We are using JCIFS(1.3.15) to authenticate from a Windows 7 client which sends only NTLM v2 responses. We are getting the following error when we use a Windows 2008 R2 domain controller jcifs.smb.SmbException: The parameter is incorrect. at…
Sajo Mathew
  • 363
  • 1
  • 5
  • 9
27
votes
2 answers

connecting to shared folder in windows with java

I need to connect to a shared folder on a remote windows machine through java , where i put my domain authentication (username and password ) in the code , here is my code File file = new File("\\\\theRemoteIP\\webapps"); File[] files =…
SShehab
  • 991
  • 3
  • 14
  • 30
25
votes
2 answers

Access to file using Java with Samba JCIFS

I have a question about accessing file with Samba JCIFS. So there is a server I want to access, let's call it server.unv.edu and the workgroup is WKGRP. There is a share in this server: \\server.unv.edu\pcb$ the way I am trying to access to the…
Allan Jiang
  • 10,075
  • 22
  • 96
  • 153
19
votes
7 answers

Alternatives for JCIFS NTLM library

Are there any alternatives for JCIFS NTLM library?
Veera
15
votes
2 answers

Problems in JCIFS with certain non-ascii characters

I am using JCIFS to access a file share with a lot of Japanese names on it, and I am running into issues when the ・character in it For example: the path 人事部/要員・コスト管理課/ the first part is ok, but the second part causes an issue. This may be related…
user439407
  • 1,470
  • 1
  • 17
  • 34
12
votes
2 answers

Android ServerSocket programming with jCIFS streaming files

I've got a bit of an issue and I've been asking regarding it quite a few times, but I think I'm one step closer now, so hopefully someone can help me with the rest. My previous questions: Connect to NAS device from Android How to open files in…
Michell Bak
  • 12,857
  • 11
  • 60
  • 121
12
votes
7 answers

JCIFS: file retrieval is too slow to be usable

I was just testing JCIFS for accessing Windows shares. It is very slow to the point of being completely unusable. import jcifs.smb.*; class First { public static void main(String[] args) throws Exception { try { …
Xolve
  • 19,182
  • 21
  • 69
  • 113
11
votes
2 answers

KrbException "Message Stream Modified (41)" when connecting to SMB share using Kerberos

I'm having some issues with Kerberos authentication to perform file management with JCifs (Kerberos extension version 1.3.17) This is my current configuration of krb5.conf: [libdefaults] default_realm =
Dieter Hubau
  • 629
  • 2
  • 6
  • 17
10
votes
2 answers

Write/upload a file using Samba/JCIFS issue (SmbAuthException: Access is denied)

So I'm trying to write a file from android device to windows shared folder. I'm using latest version of JCIFS and code which displays available network shares works fine. So I assume everything is ok with JCIFS and with my LAN, WiFi etc. Here is the…
Stan
  • 6,121
  • 8
  • 48
  • 85
9
votes
2 answers

JCIFS SmbException

I am trying to access a shared folder in my company network via JCIFS. But when i try to list the files under the shared folder, it throws an SmbException as below, jcifs.smb.SmbException: 0xC000009A at…
Kathir
  • 5,748
  • 7
  • 32
  • 67
7
votes
1 answer

How to open files in Android with default viewer using jCIFS

I'm using the free jCIFS library to connect to my NAS device via CIFS, and it's working great. I can connect and get a list of filenames, etc. without any issues. Now I'd like to open one of the files in the default Android application - i.e. a…
Michell Bak
  • 12,857
  • 11
  • 60
  • 121
7
votes
2 answers

Using SMB protocol in URL while using JCIFS library on Android

I'm using JCIFS in my new Android project. Somehow I've decided to use URL class to generalized the file path (so I can add more protocol later). What I did is as below URL url = new URL("smb://192.168.1.1/filepath"); And then…
mr_tawan
  • 636
  • 5
  • 8
6
votes
1 answer

Java - List all network printers on LAN

I need to use Java to get a list of all the IP addresses on the LAN which belong to network printers. I don't need to print to the printers, I just need to find all of them. This is for an android application. Just to be clear, I'm not trying to…
QRohlf
  • 2,655
  • 3
  • 20
  • 27
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
  • 700
  • 2
  • 17
  • 33
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
  • 1,816
  • 23
  • 54
1
2 3
18 19