Posted Thursday, April 28th, 2005 by joe

Install Java on Debian


4 Steps to installing Java on a Debian system…

Detailed Steps

1 – Get the Java SDK from Sun…

Get it here: http://java.sun.com/


2 – Install the Debian package “java-package” … as root:

# apt-get install java-package

You may also need “fakeroot” … as root:

# apt-get install fakeroot

3 – Create the .deb Package File

This step should be done as a non-root user. Create a temporary directory and copy the java .bin installer file (from Sun) into it. then run the command:

$ fakeroot make-jpkg <SUN JAVA SDK FILENAME>.bin

4 – Install the Java .deb Package … as root:

# dpkg -i <GENERATED DEB PACKAGE FILENAME>.deb

Final Verification

Execute the following to verify that the install worked:

$ java -version

Quick Summary

As root:

# apt-get install java-package

As yourself:

$ fakeroot make-jpkg <java-binary-package-name>.bin

As root:

# dpkg -i <created-package-name>.deb

This article drew heavily from How to Install Sun Java on Debian, which may be found at the following address: http://www.crazysquirrel.com/debian/install-sun-java.php.



One Response to “Install Java on Debian”

Post a Comment

latest news

Web Service Description for REST

Much has been written concerning the potential need for a description language for REST based web services.

No to SQL/RDBMS
JavaFX, Android, and J2ME
IBM says Vista the best recruiter for Linux
FOSS full stack framework comparison
What is Oracle to do with MySQL?
Intro to Terracotta
Memory Based Architecture and Clouds

Good discussion on the effect of Clouds and Memory based architecture on data access.

97 Things Every Software Architect Should Know

New from O'Reilly.

Apple, Google, and more over Microsoft