Converted this example into a Java Eclipse project.