Install JDK

  1. Add non-free in your /etc/apt/source.lst.
    deb http://debian.yorku.ca/debian/ lenny contrib non-free
     
  2. Update the packages list.
    aptitude update
     
  3. Install Sun's Java JDK.
    aptitude -y install sun-java6-jdk