Home>

I'm studying JAVA, and I'm having a hard time working through the path in my .bash profile.
Running on the terminal is fine, but when I restart the terminal the path disappears.
export PATH = $PATH: /Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home
export JAVA_HOME =/Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home

After adding the above to .bash profile, source ~/.bash_profile has been executed

After executing echo, the following message is displayed
/ usr/local/bin/usr/bin/bin/usr/sbin/sbin

The path I should have added to my .bash profile is gone.

Supplementary information (FW/tool version, etc.)

jdk-15.0.1.jdk