java: add 'check' target to Makefile