This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.
You have a different solution? A short tip here would help you and many other users who saw this issue last week.
- java.io.IOException: Cannot run program "chmod": CreateProcess error=2, ???????? ? at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at org.apache.hadoop.util.Shell.runCommand(Shell.java:200) at org.apache.hadoop.util.Shell.run(Shell.java:182)