Update makefile for java