<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Samat Jain's personal home page</title>
  <link rel="alternate" type="text/html" href="http://samat.org/weblog/2005/09/21/installing_java_2_on_debian_the_debian_way"/>
  <link rel="self" type="application/atom+xml" href="http://samat.org/node/60/atom/feed"/>
  <id>http://samat.org/node/60/atom/feed</id>
  <updated>2006-01-16T06:55:53-07:00</updated>
  <entry>
    <title>Installing Java 2 on Debian, The Debian Way</title>
    <link rel="alternate" type="text/html" href="http://samat.org/weblog/2005/09/21/installing_java_2_on_debian_the_debian_way" />
    <id>http://samat.org/weblog/2005/09/21/installing_java_2_on_debian_the_debian_way</id>
    <published>2005-09-21T19:04:00-06:00</published>
    <updated>2006-01-16T06:55:53-07:00</updated>
    <author>
      <name>Samat Jain</name>
    </author>
    <category term="Article" />
    <category term="Debian" />
    <category term="Java" />
    <category term="Linux" />
    <category term="Software" />
    <summary type="html"><![CDATA[<p>I can never remember how to install <a href="http://java.sun.com/">Java</a> on <a href="http://www.debian.org/">Debian</a>, so here's my version on how to do it the Debian Way (TM).</p>

<p>Download the Sun Java 2 Runtime environment or Development Kit from <a href="http://java.sun.com/">Sun's Java site</a>. The file you download should have a ".bin" extension. Then install:</p>

<div class="codeblock"><code>apt-get install java-package fakeroot</code></div>

<p><tt>java-package</tt> is a set of Debian scripts for creating your own Debian-ized Java package. <tt>fakeroot</tt> lets you run certain programs as root, such as the Debian package creation process. After these are installed, run:</p>

<div class="codeblock"><code>fakeroot make-jpkg jdk-*.bin&lt;br /&gt;sudo dpkg -i sun-j2sdk*.deb</code></div>

<p>The first creates a Debian package from the Sun binary installer, while the second installs the created Debian package.</p>

<p>This will fulfill all Java dependencies in Debian, something you would not get if you installed Java via some other method. It's also the "official" Java, as opposed to using something like Blackdown, and makes you less reliant on having to rely on other people for packaging. For example, I used this to create my own AMD64 64-bit Java package.</p>
    ]]></summary>
  </entry>
</feed>
