It's the first time for me to install packages in Ubuntu.I know not much about the apt
command.When i type java
in the command window directly,these below message appears:
XXX@nwtjkswskuae4w6f-0717825:~$ java
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.8-jre-headless
* openjdk-7-jre-headless
* gcj-4.6-jre-headless
* openjdk-6-jre-headless
Ask your administrator to install one of them
So, here's my question:
- How does these message come about? I mean,how does the shell find program 'in the following packages' when i type
java
or the other commands? - Where to find these packages like 'gcj-4.8-jre-headless' or 'openjdk-7-jre-headless', and why is the
java
command related to these packages?