Add the ability to explicitly specify the path to the Java executable

This pull request fixes #32 and fixes #34.