facebook

setting policy for Runtime.exec()

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #307913 Reply

    chriskuku
    Member

    During my experimenting with a JaxWS-WebService I found that execution is prohibited probably due to general java security setting.

    14:51:59,421 ERROR LogClass:33 – Cannot run program “c:/test/test.bat”: CreateProcess error=5, Zugriff verweigert

    (that’s access denied)

    Where and how do I allow for local execution of programs through java?


    Christoph

    #307916 Reply

    chriskuku
    Member

    Found the reason:

    I had to form my execute string like

    cmd /c c:\\test\\test.bat

    #307925 Reply

    support-joy
    Member

    Christoph,

    Good to hear you are all set.

    Best.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: setting policy for Runtime.exec()

You must be logged in to post in the forum log in