This is if you are working with Ubuntu or based distros.
To install Java open a Terminal and submit the following command :
sudo apt-get install ubuntu-restricted-extras
This will also install a whole host of other multimedia plugins.
See this Official Ubuntu Documentation for details https://help.ubuntu.com/community/RestrictedFormats
LUg.
jplatt39
2008-10-09 09:52:55 UTC
The best way is distribution-specific: Slackware has installed Java by default since the beginning of this century. For most of its existence, licensing issues kept Java off most distros, and you got it by going to sun.java.com and running the bin file or installing the rpm. These days you have a simpler option: go to your default installer and look for the jdk or runtime engine. It's been open sourced and most distros do what Slackware used to.
For Debian-derived systems you can use apt (open a terminal and type "apropos apt" then "man apt") even Ubuntu. For Fedora use yum, etc.
That really is the preferred method.
anonymous
2008-10-09 06:34:41 UTC
To install the Linux (self-extracting) file
Follow these instructions:
1. At the terminal: Type:
su
2. Enter the root password.
3. Change to the directory in which you want to install. Type:
cd
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java/
Note about root access: To install the JRE in a system-wide location such as /usr/local, you must login as the root user to gain the necessary permissions. If you do not have root access, install the JRE in your home directory or a subdirectory for which you have write permissions.
4. Change the permission of the file you downloaded to be executable. Type:
chmod a+x j2re-1_4_2_04-linux-i586.bin
5. Verify that you have permission to execute the file. Type:
ls -l
Make sure the installation file has executable permission
6. Start the installation process.Type:
./j2re-1_4_2_04-linux-i586.bin
This displays a binary license agreement. Read through the agreement. Press the spacebar to display the next page. At the end, enter yes to proceed with the installation.
type 'yes' to agree to the license agreement
7. The JRE is installed into its own directory. In this example, it is installed in the /usr/java/j2re1.4.2_04 directory. When the installation has completed, you will see the word Done.
The installation completes
8. The JRE is installed in j2re1.4.2_(version number) sub-directory under the current directory. In this case, the JRE is installed in the /usr/java/j2re1.4.2_04 directory. Verify that the j2re1.4.2_04 sub-directory is listed under the current directory. Type:
ls
Verify the installation filename
The installation is now complete. Skip to the Enable and Configure section.
To install the Linux RPM (self-extracting) file
Follow these instructions:
1. At the terminal: Type:
su
2. Enter the root password.
3. Change to the directory in which you want to install. Type:
cd
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java
Note about root access: To install the JRE in a system-wide location such as/usr/local, you must login as the root user to gain the necessary permissions. If you do not have root access, install the JRE in your home directory or a subdirectory for which you have write permissions.
4. Change the permission of the file you downloaded to be executable. Type:
chmod a+x j2re-1_4_2_04-linux-i586-rpm.bin
5. Start the installation process. Type:
./j2re-1_4_2_04-linux-i586-rpm.bin
This displays a binary license agreement. Read through the agreement. Press the spacebar to display the next page. At the end, enter yes to proceed with the installation.
type 'yes' to agree to the license agreement
6. The installation file creates j2re-1_4_2_-linux-i586.rpm file in the current directory.
RPM unpacking completes
7. Run the RPM command at the terminal to install the packages. Type:
rpm -iv j2re-1_4_2_04-linux-i586.rpm
8. The JRE is installed in j2re1.4.2_(version number) sub-directory under the current directory. In this case, the JRE is installed in the /usr/java/j2re1.4.2_04 directory. Verify that the j2re1.4.2_04 sub-directory is listed under the current directory. Type:
ls
Verify the installation filename
The installation is now complete. Go to the Enable and Configure section.
# III. Enable and ConfigureMozilla 1.4 and later
# Mozilla 1.2, Netscape 6 and later
Mozilla 1.4 and later
1. Go to the plugins sub-directory under the Mozilla installation directory
cd /plugins
2. In the current directory, create a symbolic link to the JRE ns610-gcc32/libjavaplugin_oji.so file Type:
3. Start Mozilla browser or restart it if it is already running. Note that if you have other Mozilla components (ie: Messenger, Composer, etc) running, you will need to restart them as well.
4. Go to Edit > Preferences. Under Advanced category > Select Enable Java
Mozilla 1.2, Netscape 6 and later
1. Go to the plugins sub-directory under the Netscape directory
cd /plugins
2. Create a symbolic l
anonymous
2008-10-09 06:25:30 UTC
www.java.sun.com
Download it for Linux.
Couldn't be simpler.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.