upgrade to java 7

issue #26