Fixed substance issue with java 7 and Linux.