add build script for java