Fixed java 1.7 requirement. Now works on java 1.6