upgrade sourceCompatibility to java 1.7
most reliable way to load a file from resources