java file.CanExecute always returns true on an AIX machine
posted 3 years ago
I have an application which has to check execution permissions for using the scripts. I am using java file.CanExecute method for this. This methods returns correct boolean when I run the app on HP-UX pr Linux machine. However when I run it on AIX machine it always returns True. Please advise how this can be fixed to return the correct boolean on AIX machine too.
true if and only if the abstract pathname exists and the application is allowed to execute the file
java.lang.SecurityException If a security manager exists and its java.lang.SecurityManager.checkExec(java.lang.String) method denies execute access to the file