Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Installing 32-bit Java the Yast way

  1. #1
    Join Date
    Jan 2009
    Location
    USA Pennsylvania
    Posts
    1,287

    Default Installing 32-bit Java the Yast way

    Hello,
    I've written a How To on how to install Java from the java.com website here.

    For those who are more comfortable using Yast, there's also a way to keep Java up to date, although the website may have an update before it gets packaged into Yast.

    I will use screenshots from my own computer to help assist you in installing java as I follow my own guide and write the steps down.

    To begin, upon going to this site verify java, your screen probably looks something like this

    .

    First we must open Yast and go into our Software Manager. Here we'll search for "sun" without the quotes.



    As you can see from my screenshot, you must select (check) java-1_6_0-sun and java-1_6_0-sun-plugin. Click on the versions tab to select which version you want. In my example, the latest version is from the update repository.

    Click accept and let Yast do its thing.

    Next you'll need to create a symbolic link for your web browser to use the java plugin.

    Open a terminal and type this:

    Code:
    su
    enter your root password

    Code:
    cd /usr/lib/browser-plugins
    Code:
    ln -s /etc/alternatives/jre_1.6.0/plugin/i386/ns7/libjavaplugin_oji.so


    And that's it!
    You can verify your java installation here verify java

    That page should now look like this
    http://www.fileden.com/files/2007/7/24/1293578/javayastsuccess_thumb.png

    Hope this helps!
    Ian
    Laptop: Dell Inspiron E1505 | OpenSUSE 12.1/Windows Vista | KDE | Intel CPU T2050 1.6 GHz | Intel 945GM | 3.2GB RAM
    Box: OpenSUSE 12.1/Windows 7 | KDE | Intel Core 2 Quad 8300 2.5GHz/core | nVidia Geforce 9500GT 1GB| 4 GB RAM

  2. #2

    Default Re: Installing 32-bit Java the Yast way

    Good HowTo, thank you very much!

  3. #3
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: Installing 32-bit Java the Yast way

    Which version of openSuSE was written this for? I'm using 11.1 and followed your instructions but found my module in a completely different location.
    I had to create the symlink to
    Code:
    /usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so
    as opposed to
    Code:
    ln -s /etc/alternatives/jre_1.6.0/plugin/i386/ns7/libjavaplugin_oji.so
    as posted in your HowTo. That path didn't exist in my installation.

    How do you remove older versions of java? I have Java1.5 directories, files and symlinks floating around.
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  4. #4
    Join Date
    Jan 2009
    Location
    USA Pennsylvania
    Posts
    1,287

    Default Re: Installing 32-bit Java the Yast way

    Hi,

    This how-to was written for openSUSE 11.1. I'm not sure of any differences between openSUSE versions, as I'm using 11.2 MS3 and have followed these directions without any problems. Of course each time I tried it was with a new installation, and if I had an existing version of Java, I'd uninstall that first, before installing the new version of Java.

    It turns out the folder I link to in my how-to is sym-linked to the folder you're using. /usr/lib/jvm/java

    Which would be why I can get the same results everytime I install it. But it is curious as to why it didn't create the /etc/alternatives/jre_1.6.0 folder as it does on mine.

    As for uninstalling older versions of Java, open YAST and then search for sun. Any versions of Java installed will be listed there.

    Thanks for pointing that out though. If anyone else has any trouble with the symbolic link part, try the way suse_tpx60s did it.

    Take Care,

    Ian
    Laptop: Dell Inspiron E1505 | OpenSUSE 12.1/Windows Vista | KDE | Intel CPU T2050 1.6 GHz | Intel 945GM | 3.2GB RAM
    Box: OpenSUSE 12.1/Windows 7 | KDE | Intel Core 2 Quad 8300 2.5GHz/core | nVidia Geforce 9500GT 1GB| 4 GB RAM

  5. #5

    Default Re: Installing 32-bit Java the Yast way

    Thank you so much! I was searching the internet for hours to get Java working with Firefox!
    The YaST-way rocks!

  6. #6

    Default Re: Installing 32-bit Java the Yast way

    And when could be find a 64 bit howto... none of these diresctories, even files exists in my system to perform the symbolic link after install of java... I wonder why is so complicated the JRE in SUSE64bits... that's very annoying...

  7. #7

    Default Re: Installing 32-bit Java the Yast way

    WEll finaly I manage to fix it... just uninstall Iced, JavaSDK... thse packages shouldnt be installed by default...

  8. #8
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: Installing 32-bit Java the Yast way

    A bit of related news for those that prefer to use the openjdk version of java.

    The default install of openSUSE installs java-1_6_0-openjdk and java-1_6_0-openjdk-plugin. I've just noticed that by visiting the java verification site that it says Firefox doesn't have the java plugin installed. I've created a symbolic link to IcedTeaPlugin.so but it hasn't helped. Some googling later I find that FF3.6 dropped the open java integration that the openjdk plugin uses. Soyou are now forced to install the sun jre if you want java to work in FF3.6.

    Strange that Mozilla have dropped open java when they are supposedly a big advocater of open software.
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  9. #9
    Join Date
    Jan 2009
    Location
    USA Pennsylvania
    Posts
    1,287

    Default Re: Installing 32-bit Java the Yast way

    Quote Originally Posted by Seneka77 View Post
    And when could be find a 64 bit howto... none of these diresctories, even files exists in my system to perform the symbolic link after install of java... I wonder why is so complicated the JRE in SUSE64bits... that's very annoying...
    Hi,

    This how-to was made when I made this 32-bit how-to. I just purchased a 64-bit system and will verify, although I'm pretty sure with 11.2 all you have to do is install java and the java plugin and it should work without having to do the linking.

    installing 64bit Java on openSUSE 11.1 - openSUSE Forums

    Take Care,

    Ian
    Laptop: Dell Inspiron E1505 | OpenSUSE 12.1/Windows Vista | KDE | Intel CPU T2050 1.6 GHz | Intel 945GM | 3.2GB RAM
    Box: OpenSUSE 12.1/Windows 7 | KDE | Intel Core 2 Quad 8300 2.5GHz/core | nVidia Geforce 9500GT 1GB| 4 GB RAM

  10. #10

    Default Re: Installing 32-bit Java the Yast way

    i've found upgrading java does not automatically upgrade to the firefox javaplugin, libnpjp2.so. After thrashing with it for a day i deleted the entire java name group under update-alternatives and reinstalled all the java stuff in java/bin, java/man, etc, selecting for my architecture 64 bit AMD where appropriate, with the following type of sh script:

    #!/bin/sh
    update-alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_26/bin/java 3 \
    --slave /usr/bin/ControlPanel ControlPanel /usr/java/jdk1.6.0_26/bin/java 3 \
    ......
    --slave /usr/lib64/browser-plugins/javaplugin.so javaplugin.so /usr/java/jdk1.6.0_26/jre/lib/amd64/libnpjp2.so 3 \
    ......

    you may have to also reset your $JAVA_HOME group of env variables.
    then remove the old java distros
    worked for me.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •