Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
An error message would help in this case. –  Tshepang May 26 '11 at 13:01

3 Answers 3

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.

share|improve this answer

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.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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