added some basic Java helpers

These helpers just compile and run classes from students' submissions. The
usage is currently a bit awkward, but it saves on a lot of boilerplate.