Workaround for the issue with Java 8u11 and 7u65

More info: http://www.infoq.com/news/2014/08/Java8-U11-Broke-Tools