Resolved errors and set classpath to Java 1.6