Updated the makefile to auto-configure the java path