I try to fix a problem with my Android Studio Installation and for that I want to edit the $PATH variable and the $JAVA_HOME variable global and not only for one session.
As I described here (Oracle Java JDK Installation) my Android Studio does not find my JAVA JDK.
My question now: when I type echo $PATH, I receive:
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
but I already edited my environment file (./etc/environment) to:
### begin crouton-generated environment variables
### end crouton-generated environment variables
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/lib/python2.7:/usr/lib/google_appengine:/usr/lib/appengine-java-sdk-1.9.40/bin"
Why does the $PATH variable not change and is not affected by my edit?
Where can I edit the $JAVA_HOME variable? I cannot find the correct file for that.
Thank you very much for your support.