script to automate building and running java programs