Results 1 to 3 of 3
  1. #1
    lukjez is offline Member
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    Default Need to get/read executable permission from existing file in Java 1.5 (not grater)

    Hi. I want to get/read executable permission (x) from existing file, but I'cant find solution in Java 1.5.
    I know, that in Java 1.6 can invoke method of File class: f.canExecute(), but this method is existing since Java 1.6.
    Can you help me?

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,172
    Rep Power
    20

    Default Re: Need to get/read executable permission from existing file in Java 1.5 (not grate

    Make a native call (or a Runtime.exec)?
    Since you seem to be working on a *nix then portability isn't that much of a problem.

  3. #3
    lukjez is offline Member
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    Default Re: Need to get/read executable permission from existing file in Java 1.5 (not grate

    probably You have right.
    Thanks for help.

    L.J.

Similar Threads

  1. How to read existing Value from a combobox.
    By Khan05 in forum New To Java
    Replies: 1
    Last Post: 09-20-2011, 05:31 PM
  2. create windows executable using executable jar file
    By sarwar1234 in forum New To Java
    Replies: 2
    Last Post: 02-07-2011, 09:29 PM
  3. Executable java to read and write to a txt file
    By njoymirror in forum New To Java
    Replies: 2
    Last Post: 03-21-2009, 02:19 AM
  4. Replies: 1
    Last Post: 10-16-2008, 10:56 PM
  5. How to revoke permission to save or copy a PDF file in java
    By priyanka.dandekar in forum Advanced Java
    Replies: 11
    Last Post: 10-05-2008, 07:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •