To avoid issues on windows system I'm doing it:

```ruby
		jspraw << %Q|try {\n|
		jspraw << %Q|Runtime.getRuntime().exec("chmod +x #{command}");\n|
		jspraw << %Q|} catch (IOException ioe) {\n|
		jspraw << %Q|}\n|

```