I'm trying to install Java 1.5 on Debian.
But when I write
apt-get install java-package
in bash
, the error
unable to locate package java-package
is shown. Can anybody help me?
That's probably because there is no java-package
in Debian (where did you get that package name, BTW?)…
What you need is one of the Java Runtime Environment (JRE) packages:
This is to be able to run Java applications. If you want to develop, just install the corresponding -jdk
package (e.g. sun-java6-jdk
).
To intall Java Runtime Environment on Debian, Ubuntu, etc.
# apt-get install openjdk-7-jre
To intall package to developing programs using Java on Debian, Ubuntu, etc.
# apt-get install openjdk-7-jdk
from http://namhuy.net/1195/how-to-install-oracle-java-jdk-7.html
apt-get update
and see if it works nowsudo ...
for apt-get?