Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access NFS share from Java program

Tags:

java

nfs

I'd like to read some data from an NFS share from my Java program. I'd need the program to authenticate to the NFS server first, then do the I/O. (Requiring the NFS share to be previously mounted is not acceptable.)

So, I'd like the functionality that's provided by this library: http://jcifs.samba.org/ , except for NFS instead of CIFS. Is such a thing built into Java already, or do I need a third-party library?

I'm also interested in whether this can be done in Perl, Python, or Ruby. But mostly Java.

like image 729
Benjamin Avatar asked Dec 08 '09 02:12

Benjamin


2 Answers

I am the author of the NFS client in Java mentioned above. Sorry for such a late reply. I still have a copy lying around even though I am not sure whether it is compatible with Java 1.4+. I can work on it if there is real interest.

like image 68
AravindC Avatar answered Nov 13 '22 01:11

AravindC


There is a library called yaNFS that is a port of webnfs source. I haven't tried it myself, but it looks like it can be something for you http://java.net/projects/yanfs

like image 1
UnixShadow Avatar answered Nov 13 '22 02:11

UnixShadow