Java version of the data extraction, including eclipse project