There are various ways to set the JAVA_HOME
variable in ubuntu , simply write the following lines:
JAVA_HOME = / usr/lib/jvm/java-......
export JAVA_HOME
etc ...
but what's the DIFFERENCE if these commands are added:
1] in /etc/profile.d/java.sh
2] in .Profile
Or another way.