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

Thread: HOW TO: install the latest Oracle (Sun) Java JRE in openSUSE 12.1

  1. #11
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: HOW TO: install the latest Oracle (Sun) Java JRE in openSUSE12.1

    Quote Originally Posted by robin_listas View Post
    On 2012-05-17 20:16, suse tpx60s wrote:

    > Code:
    > --------------------
    > suntp001:~/Downloads # update-alternatives --install "/usr/bin/java" "java" "/opt/java/32/jre1.7.0_04/bin/java" 1
    > Absolute path to 'update-alternatives' is '/usr/sbin/update-alternatives', so running it may require superuser privileges (eg. root).
    > --------------------


    He, he! You need to use "su -", not "su".

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)
    Thanks for the reply. The How-To didn't mention that. It said to use "su -p" which I did. Using just "su -" as you suggested does of course work so I guess the How-To needs to be adjusted. I'll PM the OP and mention it.
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  2. #12

    Default Re: HOW TO: install the latest Oracle (Sun) Java JRE in openSUSE12.1

    That warning is just optical: su -p does the job fine.... The warning is being generated because the system sees that the command is being issued with the user variables (the -p), and then mistakenly thinks that maybe you have no root authority. So it spawns the warning message. But the job is being done anyway....

    Nevertheless, it can be confusing for the people who apply my how-to. So I'll see what I can do about it.

    --edit:
    I've just added an explanation of this phenomenon to the how-to.
    Nederlandstalige tips voor openSUSE:
    http://sites.google.com/site/computertip/opensuse

  3. #13
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: HOW TO: install the latest Oracle (Sun) Java JRE in openSUSE12.1

    On 2012-05-18 12:16, pjotr123 wrote:
    >
    > The error is just optical: su -p does the job fine.... The error report
    > is being generated because the system sees that the command is being
    > issued with the user variables (the -p), and then mistakenly assumes
    > that there's no root authority. So it spawns the error message. But the
    > job is being done anyway....


    What is the rationale for preserving the environment? Doing administrative
    tasks works better with root environments. In this case it is just a
    warning, but often you get an error. I can only think of having faster
    access to the download path.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  4. #14

    Default Re: HOW TO: install the latest Oracle (Sun) Java JRE in openSUSE12.1

    Quote Originally Posted by robin_listas View Post
    What is the rationale for preserving the environment? Doing administrative
    tasks works better with root environments. In this case it is just a
    warning, but often you get an error. I can only think of having faster
    access to the download path.
    Faster access to the download path was exactly the reason.... I wanted to keep the how-to as short as possible, and in the beginning I need su -p for the download path.
    Nederlandstalige tips voor openSUSE:
    http://sites.google.com/site/computertip/opensuse

  5. #15

    Default Re: HOW TO: install the latest Oracle (Sun) Java JRE in openSUSE 12.1

    Tutorial looks just great! No luck to see tutorial on making old-style gnome dialogs interface?

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

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