a). Through Command Line
Open Terminal and write this command
$ sudo vi /etc/profile
and append PATH export command
Ex. 1). To set JAVA_HOME/PATH for JDK append these two lines and save
export JAVA_HOME=/usr/java/jdk1.6.0_30
export PATH=$PATH:$JAVA_HOME/bin
2). To set JDK PATH only
export PATH=$PATH:/usr/java/jdk1.6.0_30/bin
b) Through GUI
Login as root account(if root account is not active read this blog to activate http://nvnsolution.blogspot.in/2012/02/how-to-make-root-account-in-ubuntu-to.html )
open via text editor /etc/profile file and append PATH export command and save
Ex. to set JAVA_HOME path
No comments:
Post a Comment