Set the system environment variable 1.1 Open the terminal and type: sudo gedit/etc/environment. 2.2 Enter the user password. The password entered is not visible at this time. 3.3, at the end of path= "..." Add:/opt/embedsky/4.3.3/bin where/opt/embedsky/4.3.3/bin is the path to the environment variable you need to set. 4.4 Make it effective immediately, perform at Terminal: Source/etc/environment or restart the computer.
Set the current user environment variable 1.1 Open the terminal and type: sudo gedit ~/.bashrc. 2.2 Enter the user password. The password entered is not visible at this time. 3.3 The preceding step opens the. bashrc file and adds it at the end: Export path=/opt/embedsky/4.3.3/bin: $PATH where/opt/embedsky/4.3.3/ Bin is the path to the environment variable you need to set for yourself. 4.4 Make it effective immediately, execute on Terminal: source ~/.BASHRC or restart the computer. Export Java_home=/usr/lib/jvm/javaexport Jre_home=${java_home}/jreexport Classpath=.:${java_home}/lib:${jre_home} /libexport path=${java_home}/bin: $PATHexport android_home= "/home/zn/work/android-sdk-linux" Export PATH= "$PATH: $ Android_home/tools: $ANDROID _home/platform-tools "
Linux environment variables