• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the best way to create directories on a file share from java

 
desi sur
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to create directories on a file share (windows) from a java process running on a unix machine. What is the best way to do this ?

I tried using runtime to create directories but it fails as it tries to use the id under which the java program runs, is FTP the best way to create directories in which I can pass the user id / pwd to authenticate and then perform the operation ?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the jCIFS library for this (jcifs.samba.org). It's API mimics the java.io package, so there's really not much of a learning curve.
 
desi sur
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Other than using the above JCIFS library I believe some server needs to be installed , or in other words what are the pre-requisites ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!