Require a JDK during build process.

These changes add a couple checks to `tools/build-solr.sh` and `tools/build-jar.sh`, checking for the presence of `javac`, `jar`, and `ant` and failing out when they're not present.