Convert to maven project, and use java 8.