Results 1 to 4 of 4
  1. #1
    petal is offline Member
    Join Date
    Aug 2013
    Posts
    6
    Rep Power
    0

    Default error:cannot run program "patch"

    Hi friends,
    i'm trying to run apache lenya project in win7 but i receive this:
    C:\apache-lenya\src\modules\kupu\build.xml:22: java.io.IOException: Cannot run p
    rogram "patch" (in directory "C:\apache-lenya\src\modules\kupu"): CreateProcess
    error=740, The requested operation requires elevation

    what is the cause of this error? i hava been installed cygwin in:C:\Cygwin, should i install it in:C:\apache-lenya\src\modules\kupu\patches ????
    what is the cause?
    Apache Lenya - Open Source Content Management (Java/XML)

  2. #2
    radish is offline Member
    Join Date
    Aug 2013
    Posts
    16
    Rep Power
    0

    Default Re: error:cannot run program "patch"

    I believe you do already have the program patch in "C:\apache-lenya\src\modules\kupu", but it seems that the user you are running running hasn't got the right permissions... May need to run a cygwin terminal and say use chmod to change permissions or run your java app as the right user (use "ls -al")

  3. #3
    petal is offline Member
    Join Date
    Aug 2013
    Posts
    6
    Rep Power
    0

    Default Re: error:cannot run program "patch"

    Quote Originally Posted by radish View Post
    I believe you do already have the program patch in "C:\apache-lenya\src\modules\kupu", but it seems that the user you are running running hasn't got the right permissions... May need to run a cygwin terminal and say use chmod to change permissions or run your java app as the right user (use "ls -al")
    how can i get permission exactly?

  4. #4
    radish is offline Member
    Join Date
    Aug 2013
    Posts
    16
    Rep Power
    0

    Default Re: error:cannot run program "patch"

    I don't know your case exactly...

    But cd into the directory then say do "chmod 777 patch" as a cover all, but maybe try "chmod u+x,g+x patch" first, but refer here: 7 Chmod Command Examples for Beginners

    BTW i'm only going on your error message, i've never had this issue personally and i'm not on a Windows machine...

Similar Threads

  1. "Error cannot find symbol" "throws BadLocationException"
    By Daniel Silvester in forum New To Java
    Replies: 8
    Last Post: 07-02-2013, 02:53 AM
  2. Replies: 4
    Last Post: 12-22-2012, 07:40 AM
  3. Replies: 1
    Last Post: 11-03-2012, 12:38 AM
  4. Replies: 2
    Last Post: 02-22-2012, 08:22 PM
  5. Replies: 3
    Last Post: 11-08-2010, 04:23 AM

Posting Permissions

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