How to Install Java on Debian
Sun Microsystem's Java is essential to any Web browser, since the Java Runtime Environment is used on so many websites. While there are many provided options and various versions of Java, most Operating Systems can acquire a default package that covers the basics. Since Debian has a package manager, it is even easier to install the default packages as the user is not required to install from the source code.
Instructions
-
-
1
Open a Terminal from your Desktop.
-
2
Type "sudo apt-get install default-jre" (without the quotes) and hit "Enter."
-
-
3
Type your root password and hit "Enter." The installer will run you through a few questions you will have to answer. For most, "yes" is the proper answer, but read through them anyways.
-
4
Test to make sure Java is installed by typing "java --version" into the terminal.
-
1
Tips & Warnings
Your system will often come pre-installed with the open-source equivalent of the Java Runtime Environment. If you want to try running a different version other than the default, use the update-alternatives command to add alternatives to the database.