Sunday 5 January 2014

How to Install Java Compiler / javac in Ubuntu


This will show you how to install the java compiler in Ubuntu
  • Open the Terminal
  • Type in  sudo apt-get install openjdk-7-jdk
  • You will be asked for authorization and confirmation of the download and once finished you can start using the compiler
Now in case you get this message  E: unable to locate package openjdk-7-jdk
  • Type in  sudo apt-get update to update the packages
  • Then type in sudo apt-get install openjdk-7-jdk once more and that should do the trick