Fixed classpath and JRE reference errors. Converted to maven project.