1.To install java
, go to terminal and enter
sudo apt-get install openjdk-7-jdk
once you done the
Installation
2.GO to
Terminalto edit .bashrc file
vi ~/.bashrc
[if not allowing to
edit you have to give the root permission by type “sudo”]
sudo vi ~/.bashrc
It will open the
Text editor
3. Add this code
to end of the Document
4. |
Save the file 4.To check whether the PATH is set properlyType JAVA -versionif you got like this , PATH has beed set successfully |
No comments :
Post a Comment