hamsterdb: fix HEAD, add Java option

Closes #22573.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>