fix java depends