setup build for java