Installing Java onto Debian
Wednesday, September 8th, 2004My next task was to install Java and Eclipse onto Debian. Now this turns out to be a little complicated because there isn’t a apt-get package for Java. Also the apt-get package for Eclipse is not in the “sarge” build, which is what I’m running.
Understanding why this is an issue is requires an understanding of apt-get. For apt-get to figure out the dependances for a package, it needs to know its installed. So just downloading the jdk/jre and unzipping it will work but you will break apt-get. To solve this you need to install some Dummy packages. I found out here (Java on Debian) and
here (Debian notes) how to do that.
Next Eclipse.The Debian Eclipse packages are in the unstable sources. I’m running sarge, but I want eclipse and only the Eclipse package from unstable. To get the latest and greatest version of a package you can use apt-pinning. There is a beginners guide here.