• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sharing a directory in java?

 
Sreek Gupta
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is there a way to share a directory on my server machine using java?

Regds,
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think so, other than doing something platform-specific and accessing it with Runtime.exec() or JNI. (I would strongly favor Runtime.exec() there.)
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can create a method using C++ and then use it from java to do the OS specific task.Basically all the methods which needs direct support of the OS(rather the native methods) works in this way only.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!