Build static java library.