Results 1 to 1 of 1
- 03-02-2010, 04:59 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 1
- Rep Power
- 0
java and nfs and automount on linux
I am trying to track a problem we are having with some java code on redhat linux.
The code below is failing.
if(metadDir.isDirectory() && metaDir.canWrite()) {....
the canWrite function is where the failure happens. The reason that it happens is the directory is on a filer that is controlled by automount. If the directory is not mounted the node permissions are returned not the directory permissions making the canWrite function fail. If you access the directory beforehand and you are sure it is mounted everything works correctly. The other problem I have is that it works correctly on solaris even though I don't think it should. Is there a good way to address this? Has anyone else run into this. Any help would be appreciated.
Thanks,
Jug
Similar Threads
-
[SOLVED] Windows Linux conflict - TrayIcon image not display in Linux
By Eranga in forum Advanced JavaReplies: 6Last Post: 04-08-2009, 04:05 AM -
Java On Linux
By Natrix in forum New To JavaReplies: 15Last Post: 04-08-2009, 12:31 AM -
java installation on linux
By raghu9198 in forum New To JavaReplies: 1Last Post: 03-22-2009, 05:37 PM -
Linux process from java
By Ed in forum New To JavaReplies: 2Last Post: 07-04-2007, 05:03 AM -
Linux and java
By Alan in forum Advanced JavaReplies: 2Last Post: 05-31-2007, 02:30 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks