[Makefile] modify makefile for lower version java