Updated Makefiles to allow for custom Java paths.