I just downloaded Java and according to the Java Control Panel the executable is at this directory:
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
Now I want to export an env variable JAVA_HOME
as such:
>export JAVA_HOME=“/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java”
But when I print out the variable everything after the space is butchered
>$JAVA_HOME
-bash: “/Library/Internet: No such file or directory
How do I properly export this path to the variable?
Now there is another question that answers this but that answer there doesn't work:
>SOME_PATH="/mnt/someProject/some path"
>$SOME_PATH
-bash: /mnt/someProject/some: No such file or directory
And using the other answer on there:
>SOME_PATH=/mnt/someProject/some\ path
>$SOME_PATH
-bash: /mnt/someProject/some: No such file or directory
And here is my bash version (I'm on macOS 10.14.5):
>echo $BASH_VERSION
3.2.57(1)-release