Aug 242009

Java refers to a number of computer software products and specifications from Sun Microsystems that together provide a system for developing application software and deploying it in a cross-platform environment. Java is used in a wide variety of computing platforms from embedded devices and mobile phones on the low end, to enterprise servers and supercomputers on the high end. Java is nearly ubiquitous in mobile phones, Web servers and enterprise applications, and while less common on desktop computers, Java applets are often used to provide improved functionality while browsing the World Wide Web.

Important Note:- After completing java6 installation you need to remove newly added source list otherwise it will install all the packages from unstable

First you need to edit /etc/apt/sources.list file add the following line

deb unstable non-free

save and exit the file

Now update the source list using the following command

#apt-get update

If you install any previous versions of sun java please remove before proceeding next step

#apt-get install sun-java6-jre

Sponsored Link

 Posted by at 12:59 am

  3 Responses to “Howto install Java6 on debian Etch”

  1. Google apt-pinning….

    its common practice to run mixed level machines, but you MUST MUST MUST always have valid locations for installed packages, otherwise there is no point in having a package manager.

    the correct way to do java6 would be to add the unstable or testing sources, then using a preference pin stable way above(numerically) the other repos, and only allow java6 and its dependancies in from the other repos.

  2. more simple

    add to /etc/apt/source.list

    deb etch-backports main contrib non-free

    aptitude update

    aptitude install sun-java6-jre

  3. hahaha – I never bothered to even check the backports repo, but with my old Sarge Boxes, we would always use them.

    Dont forget to install the backports-keyring into apt so you dont get warnings.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>