Setup the building framework for Java version.