Eu instalei o java, mas não consegui fazer nenhum comando java funcionar! Abaixo, mostra o que recebo quando tento executar comandos java:
sultan@ubuntu:~$ java
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.6-jre-headless
* openjdk-6-jre-headless
* gcj-4.5-jre-headless
* openjdk-7-jre-headless
Try: sudo apt-get install <selected package>
sultan@ubuntu:~$ sudo apt-get install openjdk-7-jre
[sudo] password for sultan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
openjdk-7-jre is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.