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
- 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