installing java

Asked by Elron Nightshade

im trying to install java but im really a "linux noob" plz help me find an easier way

im told to do the following in the terminal

o 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 <directory path name>
      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 jre-6u<version>-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:
      ./jre-6u<version>-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/jre1.6.0_<version> directory. When the installation has completed, you will see the word Done.

The installation completes

   8. The JRE is installed in jre1.6.0_<version> sub-directory under the current directory. In this case, the JRE is installed in the /usr/java/jre1.6.0_<version> directory. Verify that the jre1.6.0_<version> 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.

of course i know i replace su with sudo but its so hard can anyone come up with a simple step by step way, i saved it on my desktop and its the self extracting version not rpm self extract

many thanx Elron Jethro Nightshade

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
JoseStefan (josestefan) said :
#1

Try this ubuntu guide instead:

https://help.ubuntu.com/community/Java

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

Please open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-plugin sun-java6-fonts

give your user password when requested, you don't see nothing when you type it, then press enter.

Then please accept the java licence (use tab key and press enter)

Hope this helps

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

I forget, please also check you have the multiverse repository enabled from menu:

System->Administration->Software sources

enable "Software restricted by copyright or legal issue (multiverse)

Hope this helps

Can you help with this problem?

Provide an answer of your own, or ask Elron Nightshade for more information if necessary.

To post a message you must log in.