complete java port
add java target to Makefile