If I try to install Sun Java JDK 6 on Debian, it doesn't install it. I don't want to install OpenJDK, because it doesn't work always exactly same as Sun JDK.

I use following command:

apt-get install sun-java6-jdk

Package name should be correct, see link http://packages.debian.org/sid/sun-java6-jdk.

link|improve this question

54% accept rate
An error message would help in this case. – Tshepang May 26 '11 at 13:01
feedback

3 Answers

Run sudo apt-cache search java6 to get a list of packages available from the default repositories. If you don't see anything you like, you will have to either add an apt repository or install java manually.

link|improve this answer
feedback

Are you running as root? Otherwise you'd need to use sudo to elevate yourself to have sufficient privileges to make system wide installations.

link|improve this answer
feedback

The Sun (well, Oracle) Java packages are in the non-free repository, which you may have disabled (not sure off the top of my head whether it's enabled by default in sid). Make sure non-free is enabled in your /etc/apt/sources.list, then run an apt-get update.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.