ubuntu ja JRE

Discussion in 'Linux -keskustelu' started by markojs, Jan 20, 2008.

  1. markojs

    markojs Member

    Joined:
    Oct 5, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    11
    Terve,

    linux amatöörinä asensin tässä vanhaan läppäriin Ubuntun 7.10. Nyt yritän pelailla pokeria (club4aces.com) mutta sivut herjaavat väärästä java versiosta (you will need version 5.0 or later. Yritän asentaa uutta versiota linkistä http://www.java.com/en/download/linux_manual.jsp ja sieltä linux. Asennan ohjeiden mukaan:

    To install the Linux (self-extracting) file

    Follow these instructions:

    At the terminal: Type:
    su
    Enter the root password.
    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.
    Change the permission of the file you downloaded to be executable. Type:
    chmod a+x jre-6u2-linux-i586.bin
    Verify that you have permission to execute the file. Type:
    ls -l

    Start the installation process.Type:
    ./jre-6u2-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.

    The JRE is installed into its own directory. In this example, it is installed in the /usr/java/jre1.6.0_02 directory. When the installation has completed, you will see the word Done.

    The JRE is installed in jre1.6.0_02 sub-directory under the current directory. In this case, the JRE is installed in the /usr/java/jre1.6.0_02 directory. Verify that the jre1.6.0_02 sub-directory is listed under the current directory. Type:
    ls

    The installation is now complete. Skip to the Enable and Configure section.

    ja jatkuu enable:

    Mozilla 1.4 and later

    Go to the plugins sub-directory under the Mozilla installation directory
    cd <Mozilla installation directory>/plugins
    In the current directory, create a symbolic link to the JRE ns7/libjavaplugin_oji.so file Type:
    ln -s <JRE installation directory>/plugin/i386/ns7/libjavaplugin_oji.so
    Example:

    If Mozilla is installed in this directory:
    /usr/lib/mozilla-1.4/
    and if the JRE is installed at this directory:
    /usr/java/jre1.5.0
    Then type at the terminal to go to the browser plug-in directory:
    cd /usr/lib/mozilla-1.4/plugins
    Enter the following command to create a symbolic link to the Java Plug-in for the Mozilla browser.
    ln -s /usr/java/jre1.5.0/plugin/i386/ns7
    /libjavaplugin_oji.so .
    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.
    Go to Edit > Preferences. Under Advanced category > Select Enable Java

    muuten käytän noita enable ohjeita paitsi että mozillan tilalla käytän mozilla-firefox koska käytössä selain mozilla firefox 2.0.0.11.

    Asennuksen jälkeen Java sivuilla oleva testi softaa edelleen ilmoittaa että versio on 1.4.2.

    Löytyisikö apuja?

    M
     
  2. gee71

    gee71 Member

    Joined:
    Nov 20, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    11
    Moro,

    Ratkaisu löytyy Ubuntun oman paketinhallinnan kautta: Järjestelmä - Ylläpito - Synaptic-pakettienhallinta. Anna ylläpitosalasana ja Synapticin käynnistyttyä klikkaa 'Etsi' painiketta. Laita hakutermiksi 'JRE'. Valitse luettelosta kaikki 'sun-java5'- tai 'sun-java6'-alkuiset paketit riippuen siitä minkä version haluat asentaa. Paina ikkunan yläreunasta 'Toteuta' ja sitten tulevasta ruudusta uudelleen 'Toteuta', niin Synaptic hakee, purkaa, asentaa ja konfiguroi paketit koneellesi.

    Käsiasennuksiin kannattaa turvautua vasta siinä vaiheessa kun on varma, ettei paketinhallinnan kautta löydy oikeaa softaa.
     
  3. IsoPylly

    IsoPylly Regular member

    Joined:
    Sep 10, 2005
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    26
    Joo, helpommalla pääsee kun komentaa päätteessä
    sudo apt-get install ubuntu-restricted-extras
    asentaa javan lisäksi myös
    flash-playerin ja pari muuta tarpeellillista härpäkettä.
     
  4. gee71

    gee71 Member

    Joined:
    Nov 20, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    11
    Tottahan tuo, mutta aloittelevalle voipi Synaptic olla käyttäjäystävällisempi vaihtoehto. :)
     
  5. markojs

    markojs Member

    Joined:
    Oct 5, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    11
    Moro ja kiitti vastauksista.

    Löysin aiemmin jo noita ohjeita mm. ajamaan tuo:

    sudo apt-get install ubuntu-restricted-extras

    mutta se ei mennyt läpi -> tuli jotain virhe herjoja eikä tilanne muuttunut mitenkään.

    Ajattelin että helpoimmalla pääsee kun pudottaa uudestaan linukka paketin ja sen jälkeen Add/remove applicationin kautta enabloin tuon
    ubuntu-restricted-extras.

    Sehän lähti pelittämään.

    Tattis.

    M
     

Share This Page