fix java and secret key