fix java profile config