Bash_profile doesn’t work I want use .bash_profile but I have a bug.

In my file I have :

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home


But When my JAVA_HOME is called by Ionic I have :

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home


I don't know why my JAVA_HOME is not same.

I try to launch . .bash_profile but don't work
Per memory in the .bash_profile when I used to dabble in Java you need to add export and ". In the Terminal run the command:

 nano .bash_profile


Then add:

export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home"


Then do the reboot of: . .bash_profile after you've saved the bash_profile