Howto Install Sun Java on Debian Etch

Java LogoThis small guide shows how to install the original Sun Java 2 Platform Standard Edition 5.0 JRE (Java Runtime Environment) and JDK (Java Developer Kit) on Debian 4.0 Etch
.

The original Sun Java 2 is available in the ‘non-free’ section of the Debian repositories. To enable this section first add the non-free repository to the apt sources file – the /etc/apt/sources.list should look like, – important parts are in bold:


deb http://ftp.us.debian.org/debian/ etch main contrib non-free

Now, update apt:

sudo apt-get update

Then install the Java debian packages.

sudo apt-get install sun-java5-jre

Or this for installing the JDK ( the Java SDK )

sudo apt-get install sun-java5-jdk

VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)

Related posts:

  1. Ubuntu Howto: Install Sun Java
  2. Howto install Java on Debian Sarge
  3. Howto Install Oracle on Debian
  4. Upgrade Debian Etch to Debian Lenny
  5. Ubuntu Howto: Install Oracle
  6. Howto install Sun Java on Debian Sarge
  7. Debian Backports
  8. Howto PHP / Java bridge on Debian
  9. Update entry on Xen on Debian Etch
  10. Howto Install Ruby and Ruby on Rails on Debian Etch 4.0

Popular Related Items »

20 Comments »

  1. Achim said,

    July 6, 2007 @ 6:31

    Hey Dude,
    thanks for the hint! :-)

  2. Fernando F. T said,

    August 24, 2007 @ 16:58

    Thanks for the help… it works!!!! Great job…

  3. ReneS said,

    September 3, 2007 @ 11:00

    Great. Helped to solve my problem. Thanks.

  4. nud3lz said,

    September 13, 2007 @ 23:41

    Hi,
    this was it!!
    Looked about 3h to find an easy way without dpkg and stuff, and here u are!
    In fact gentoo have a easier way to find the suns java-sdk as debian have.

    but i thank u very much for little howto!

  5. fr3klz said,

    September 30, 2007 @ 19:26

    yo nud3lz,
    try ‘apt-cache search java5′ to find what youre looking for in like 3s.
    d/s

  6. Bapt said,

    November 29, 2007 @ 15:19

    Thx a lot!
    ‘have been looking for hours to find smthg like that ;)

  7. cijo said,

    December 6, 2007 @ 5:42

    Hi
    How to connect from java program to mysql running in a different machine on the same LAN?
    I installed mysql with
    apt-get mysql-server

  8. Welson Tavares said,

    December 28, 2007 @ 13:21

    Thank’s!

    It’s very cool tip!

  9. r3dd4z3 said,

    January 1, 2008 @ 5:45

    howto plug in epiphany browser?
    i tried
    ln -s /usr/lib/jvm/java-1.5.0-sun/jre/plugin/i386/ns7/libplugin_oji.so /usr/lib/epiphany/2.14/plugins/libjavaplugin_oji.so
    i need to know please

  10. za said,

    January 4, 2008 @ 8:01

    Thank you for your writing. It really help me!

  11. Radek said,

    April 11, 2008 @ 6:22

    Thanks for the hint

  12. Mike said,

    April 12, 2008 @ 9:06

    Indeed, great hint.

  13. Reza said,

    June 19, 2008 @ 12:31

    Greate job, It solved my problem

  14. Cristian Gradisteanu said,

    August 5, 2008 @ 20:13

    Thanks for the tip, it works great..one more question tho…does this work for arm machines too?

  15. Robert T said,

    October 10, 2008 @ 21:43

    Very helpful! I searched in google and did not found any useful things but this is really the best one
    Thank you

  16. Tony said,

    March 11, 2009 @ 3:36

    Thanks a lot, much appreciated.

  17. Markus said,

    March 22, 2009 @ 13:27

    How is it with the JAVA_HOME ? Is this set automaticly with the package installer?

  18. Amazon Web Services from Scratch | Nerd Gene said,

    May 11, 2009 @ 21:46

    [...] 1) Get Java [...]

  19. maha said,

    June 8, 2009 @ 9:18

    when i install java find username is not in the sudoers file

  20. maha said,

    June 8, 2009 @ 9:20

    i install java on debian 5

RSS feed for comments on this post · TrackBack URI

Leave a Comment