The J2SE Development Kit (JDK), version 6 (update >= 10), 7
The J2SE Runtime Environment (JRE), version 6 (update >= 10), 7
The J2SE API Javadoc, version 6 (update >= 10), 7
sudo aptitude install java-package
(note that java-package is not in the main sources, you need to add contrib to your /etc/apt/sources.list)
Detected Debian build architecture: amd64
Detected Debian GNU type: x86_64-linux-gnu
Java(TM) Development Kit (JDK)
Standard Edition, Version 1.7.0+update40
Is this correct [Y/n]: Y
Checking free diskspace: done.
In the next step, the binary file will be extracted. Probably a
license agreement will be displayed. Please read this agreement
carefully. If you do not agree to the displayed license terms, the
package will not be built.
Press [Return] to continue:
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is ****.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
Now try logging into the machine, with "ssh 'localhost'", and check in:
to make sure we haven't added extra keys that you weren't expecting.