Blogger Widgets

Wednesday, July 31, 2013

Install java(jdk7) on Ubuntu(Linux)

      Hi Friends now I'm posting how to install java software in linux systems. In linux there are two ways to add jdk tool to our system.First one is through Graphical User Interface. And the other is using terminal commands.According to my view it is easy to install JDK using terminal commands. Just connect the net and use following commands then yo will get JDK to your system.
Open Terminal and type following commands....
  • To Install JDK : $ sudo apt -get install openjdk-7-jdk
  • and just wait till the process completes(till $ appears)
  • To Enable it : $ update -alternatives –display
  • To See version of java : $ java -version
  • To see version of java compiler(javac): $ javac -version
  • To remove java: $ sudo apt -get remove oracle-jdk7-installer

No comments:

Post a Comment