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?

link|improve this question
Try running apt-get update and see if it works now – Rafe Kettler Jul 25 '11 at 14:45
1  
On Ubuntu, the package is named "openjdk-6-jre" for the OpenJDK JVM. – João Fernandes Jul 25 '11 at 14:51
Don't you use sudo ... for apt-get? – user unknown Jul 25 '11 at 15:34
feedback

migrated from stackoverflow.com Jul 25 '11 at 15:03

This question came from our site for professional and enthusiast programmers.

1 Answer

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown