Installation on Mac: environment variables

Hi, I have set my environment variable, and type gradle -v on my console, but it appears

-bash: gradle: command not found

Could anyone help me to see what’s the problem on my setting? Thank you

The following is my .profile

I set this in my .bash_profile and it works for me. I don’t have a .profile file on my system. I believe the change is picked up by any new Terminal you open. You must make the settings directly in any Terminal that is already open.

As I recall, on Linux (openSUSE) .bash_profile was only reread when you logged out and logged in again. Could that be the way it is with Mac Terminal and .profile?