I've followed this tutorial. I notice that I need to set DATASTORE_SERVICE_ACCOUNT, DATASTORE_PRIVATE_KEY_FILE environment variables in order to configure the credential.
I wonder, is there other way to configure the credential without the need to set the environment variables? If there is no other way, Could any one help me to know how I can read these variables from the user and then set them programmatically from java? (I don't want to use the shell, I need to set them using codes) (Note:I'm using mac).
Any help will be appreciated..