Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Installing Oracle Java to run SAP gui Java 7.30 in openSUSE 12.3 64 bit

  1. #11
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Installing Oracle Java to run SAP gui Java 7.30 in openSUSE 12.364 bit

    On 2013-04-26 18:46, Easgs wrote:
    >
    > I followed this guide
    >
    > https://sites.google.com/site/easyli...a-for-opensuse


    That guide is fine, except that it uses the tar instead of the rpm.
    That's an error, IMHO.


    > checked in the java site and it reports the right version, also in
    > firefox aboutlugins but if I run the command
    >
    > java -version
    >
    > I get this


    Please use code tags for printouts and commands. Advanced editor, '#'
    button.
    Posting in Code Tags - A Guide




    > It reports the OpenJDK not the Oracle Java which is Version 7 Update 21


    That's step 5 on that guide (Inform the system and make the new JRE the
    default), and is also written in the notes in my post.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  2. #12
    Join Date
    Jun 2008
    Location
    Managua
    Posts
    400

    Default Re: Installing Oracle Java to run SAP gui Java 7.30 in openSUSE 12.3 64 bit

    I did the steps as the guide says, su -p, but it didn't work, doing it as root did the trick, check it out

    Code:
    eduardo@linux-3uso:~> su -p
    Contraseña: 
    linux-3uso:~ # update-alternatives --install "/usr/bin/java" "java" "/opt/java/64/jre1.7.0_21/bin/java" 1
    Absolute path to 'update-alternatives' is '/usr/sbin/update-alternatives', so running it may require superuser privileges (eg. root).
    
    linux-3uso:~ # update-alternatives --install "/usr/bin/java" "java" "/opt/java/64/jre1.7.0_21/bin/java" 1
    Absolute path to 'update-alternatives' is '/usr/sbin/update-alternatives', so running it may require superuser privileges (eg. root).
    
    linux-3uso:~ # update-alternatives --set java /opt/java/64/jre1.7.0_21/bin/java
    Absolute path to 'update-alternatives' is '/usr/sbin/update-alternatives', so running it may require superuser privileges (eg. root).
    
    linux-3uso:~ # java -version
    java version "1.7.0_15"
    OpenJDK Runtime Environment (IcedTea7 2.3.7) (suse-8.3.1-x86_64)
    OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
    linux-3uso:~ # exit
    exit
    
    eduardo@linux-3uso:~> su
    Contraseña: 
    linux-3uso:/home/eduardo # update-alternatives --install "/usr/bin/java" "java" "/opt/java/64/jre1.7.0_21/bin/java" 1
    
    linux-3uso:/home/eduardo # update-alternatives --set java /opt/java/64/jre1.7.0_21/bin/java
    update-alternatives: using /opt/java/64/jre1.7.0_21/bin/java to provide /usr/bin/java (java) in manual mode
    
    linux-3uso:/home/eduardo # java -version
    java version "1.7.0_21"
    Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
    linux-3uso:/home/eduardo # exit
    exit
    eduardo@linux-3uso:~> java -version
    java version "1.7.0_21"
    Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
    eduardo@linux-3uso:~>

  3. #13
    Join Date
    Jun 2008
    Location
    Managua
    Posts
    400

    Default Re: Installing Oracle Java to run SAP gui Java 7.30 in openSUSE 12.3 64 bit

    That guide is fine, except that it uses the tar instead of the rpm.
    That's an error, IMHO.
    I did it with the rpm style and it worked

    1) install rpm with yast, right click rpm file, open with, add/remove programs, clic ok

    2) In yast software management, select icedtea-web to be removed and clic ok

    3) input these commands as root

    Code:
    update-alternatives --install "/usr/bin/java" "java" "/usr/java/jre1.7.0_21/bin/java" 1
    update-alternatives --set java /usr/java/jre1.7.0_21/bin/java

    4) exit root and type su -p enter password for admin and type the following command

    Code:
    mkdir -v ~/.mozilla/plugins
    ln -s /usr/java/jre1.7.0_21/lib/amd64/libnpjp2.so ~/.mozilla/plugins/
    5) after that do this

    Type in the terminal (copy/paste):
    Code:
    /usr/java/jre1.7.0_21/bin/ControlPanel
    Press Enter.

    Temporary Internet Files - Settings... Disk Space: limit it to 50 MB.
    Click Delete Files... OK - OK - Apply - OK.

    6) optional to check thing enter these commands

    Code:
    #update-alternatives --list java
    
    
    #java -version

    thank a lot for your help.

  4. #14
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Installing Oracle Java to run SAP gui Java 7.30 in openSUSE 12.364 bit

    On 2013-04-26 21:26, Easgs wrote:
    >
    >> That guide is fine, except that it uses the tar instead of the rpm.
    >> That's an error, IMHO.

    >
    > I did it with the rpm style and it worked


    Good :-)


    > 1) install rpm with yast, right click rpm file, open with, add/remove
    > programs, clic ok
    >
    > 2) In yast software management, select icedtea-web to be removed


    I would not do that.

    Why? Because if you do, then the package manager will think that you
    have no java installed, and will either remove all applications that
    need java, or install another java version instead behind your back.

    So you need to have one of the java versions that yast wants, and also,
    oracle's java. Both.

    (YaST doesn't recognize that Oracle's Java is Java, because it does not
    contain the expected "provides" sections)


    > 3) input these commands as root


    Note: use this to become root:

    Code:
    su -
    Use other combinations when required and you know why :-)



    > 4) exit root and type su -p enter password for admin and type the
    > following command
    >
    >
    > Code:
    > --------------------
    >
    > mkdir -v ~/.mozilla/pluginsln -s /usr/java/jre1.7.0_21/lib/amd64/libnpjp2.so ~/.mozilla/plugins/
    >
    > --------------------


    Huh, no, you should have done that as plain user, no 'su' at all. You
    are creating directories and links inside your own home, things there
    should be owned by you, not by root :-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  5. #15
    Join Date
    Jun 2008
    Location
    Managua
    Posts
    400

    Default Re: Installing Oracle Java to run SAP gui Java 7.30 in openSUSE 12.3 64 bit

    You were right, this is what I did now:

    Installing

    Run as Root

    Code:
    rpm -Uvh jre-7u21-linux-x64.rpm
    update-alternatives --install "/usr/bin/java" "java" "/usr/java/jre1.7.0_21/bin/java" 1
    update-alternatives --set java /usr/java/jre1.7.0_21/bin/java
    Enabling the java plugin for firefox

    Run as user

    Code:
    mkdir -v ~/.mozilla/plugins
    ln -s /usr/java/jre1.7.0_21/lib/amd64/libnpjp2.so ~/.mozilla/plugins/
    Fixing disk usage

    Run as user

    Code:
    /usr/java/jre1.7.0_21/bin/ControlPanel
    Temporary Internet Files - Settings... Disk Space: limit it to 50 MB.
    Click Delete Files... OK - OK - Apply - OK.

    Checking


    Run as root

    Code:
    update-alternatives --list java
    Run as user

    Code:
    java -version
    that is all, you can just copy paste the commands if you wish.


    that is what I mentioned at the begining af the thread, there are several guides out there to do this, and all are different, thanks for your help, now the next step for me is to install and test Sap Gui java client 7.30

  6. #16
    Join Date
    Jun 2008
    Location
    Managua
    Posts
    400

    Default Re: Installing Oracle Java to run SAP gui Java 7.30 in openSUSE 12.3 64 bit

    Last minute note, with these commands as root



    Code:
    update-alternatives --install "/usr/lib64/browser-plugins/javaplugin.so" "javaplugin" "/usr/java/jre1.7.0_21/lib/amd64/libnpjp2.so" 1
    update-alternatives --set javaplugin /usr/java/jre1.7.0_21/lib/amd64/libnpjp2.so
    I didn't have to do this

    Run as user

    Code:

    mkdir -v ~/.mozilla/plugins
    ln -s /usr/java/jre1.7.0_21/lib/amd64/libnpjp2.so ~/.mozilla/plugins/
    and it worked also for chromium

Page 2 of 2 FirstFirst 12

Posting Permissions

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