[opensuse] java 8 on tumbleweed
I am trying to install Java 8 from Oracle on Tumbleweed. My wife wants to update the software in her bike (seriously). I get this: # rpm -i jre-8u251-linux-x64.rpm warning: jre-8u251-linux-x64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Unpacking JAR files... plugin.jar... javaws.jar... deploy.jar... rt.jar... jsse.jar... charsets.jar... localedata.jar... update-alternatives: error: alternative javaws can't be slave of java: it is a slave of libjavaplugin.so.x86_64 warning: %post(jre1.8-1.8.0_251-fcs.x86_64) scriptlet failed, exit status 2 I didn't see any clear instructions for when this happens. I tried uninstalling the existing jre 1.8, but that did not help. I'm also curious why the jre 8 install is making a reference to jre 1.8. Tha is/was the previous one. So maybe that is where the reference comes from. I's so long since I fiddled with Java... Anyone seen this? -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
19.04.2020 22:04, Roger Oberholtzer пишет:
I am trying to install Java 8 from Oracle on Tumbleweed. My wife wants to update the software in her bike (seriously). I get this:
You do not need to install Java to use it. Just use tar, unpack and set JAVA_HOME.
# rpm -i jre-8u251-linux-x64.rpm warning: jre-8u251-linux-x64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Unpacking JAR files... plugin.jar... javaws.jar... deploy.jar... rt.jar... jsse.jar... charsets.jar... localedata.jar... update-alternatives: error: alternative javaws can't be slave of java: it is a slave of libjavaplugin.so.x86_64 warning: %post(jre1.8-1.8.0_251-fcs.x86_64) scriptlet failed, exit status 2
I didn't see any clear instructions for when this happens. I tried uninstalling the existing jre 1.8, but that did not help.
I'm also curious why the jre 8 install is making a reference to jre 1.8. Tha is/was the previous one. So maybe that is where the reference comes from.
I's so long since I fiddled with Java...
Anyone seen this?
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
19.04.2020 22:04, Roger Oberholtzer пишет:
I am trying to install Java 8 from Oracle on Tumbleweed. My wife wants to update the software in her bike (seriously). I get this:
You do not need to install Java to use it. Just use tar, unpack and set JAVA_HOME. There are some more Java environment variables on openSUSE. My java8.sh
Andrei Borzenkov wrote: script (/usr/lib64/jdk8_Oracle should be a symlink to the Java 8 installation directory here): JRE_HOME=/usr/lib64/jdk8_Oracle/jre JAVA_BINDIR=/usr/lib64/jdk8_Oracle/bin JAVA_HOME=/usr/lib64/jdk8_Oracle JDK_HOME=/usr/lib64/jdk8_Oracle JAVA_ROOT=/usr/lib64/jdk8_Oracle PATH=$JAVA_BINDIR:$PATH exec "$@" Regards, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
I set JAVA_HOME and the app started. I'm still confused about the Oracle RPM install error. Perhaps it's moot. On Mon, Apr 20, 2020 at 2:36 PM Bjoern Voigt <bjoernv@arcor.de> wrote:
19.04.2020 22:04, Roger Oberholtzer пишет:
I am trying to install Java 8 from Oracle on Tumbleweed. My wife wants to update the software in her bike (seriously). I get this:
You do not need to install Java to use it. Just use tar, unpack and set JAVA_HOME. There are some more Java environment variables on openSUSE. My java8.sh
Andrei Borzenkov wrote: script (/usr/lib64/jdk8_Oracle should be a symlink to the Java 8 installation directory here):
JRE_HOME=/usr/lib64/jdk8_Oracle/jre JAVA_BINDIR=/usr/lib64/jdk8_Oracle/bin JAVA_HOME=/usr/lib64/jdk8_Oracle JDK_HOME=/usr/lib64/jdk8_Oracle JAVA_ROOT=/usr/lib64/jdk8_Oracle PATH=$JAVA_BINDIR:$PATH
exec "$@"
Regards, Björn
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, In the Message; Subject : [opensuse] java 8 on tumbleweed Message-ID : <CANkOqwNHLukddE-_BoovpB6v7YEV-B9sSXK70=N2mp=0e4GZoA@mail.gmail.com> Date & Time: Sun, 19 Apr 2020 21:04:55 +0200 [RO] == Roger Oberholtzer <roger.oberholtzer@gmail.com> has written: RO> I am trying to install Java 8 from Oracle on Tumbleweed. My wife wants RO> to update the software in her bike (seriously). I get this: RO> # rpm -i jre-8u251-linux-x64.rpm RO> warning: jre-8u251-linux-x64.rpm: Header V3 RSA/SHA256 Signature, key RO> ID ec551f03: NOKEY RO> Unpacking JAR files... RO> plugin.jar... RO> javaws.jar... RO> deploy.jar... RO> rt.jar... RO> jsse.jar... RO> charsets.jar... RO> localedata.jar... RO> update-alternatives: error: alternative javaws can't be slave of java: RO> it is a slave of libjavaplugin.so.x86_64 RO> warning: %post(jre1.8-1.8.0_251-fcs.x86_64) scriptlet failed, exit status 2 RO> I didn't see any clear instructions for when this happens. I tried RO> uninstalling the existing jre 1.8, but that did not help. Maybe, your uninstallation failed. How about this; # rpm -e --nodeps jre1.8-1.8.0_251-fcs.x86_64 # rpm -ivh jre-8u251-linux-x64.rpm Regards, --- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ┃\/彡 ┗━━┛ "Bill! You married with Computer. Not with Me!" "No..., with money." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, In the Message; Subject : Re: [opensuse] java 8 on tumbleweed Message-ID : <87wo697otv.wl-nomiya@galaxy.dti.ne.jp> Date & Time: Tue, 21 Apr 2020 07:51:56 +0900 [MN] == Masaru Nomiya <nomiya@galaxy.dti.ne.jp> has written: MN> Hello, MN> In the Message; MN> Subject : [opensuse] java 8 on tumbleweed MN> Message-ID : <CANkOqwNHLukddE-_BoovpB6v7YEV-B9sSXK70=N2mp=0e4GZoA@mail.gmail.com> MN> Date & Time: Sun, 19 Apr 2020 21:04:55 +0200 MN> [RO] == Roger Oberholtzer <roger.oberholtzer@gmail.com> has written: RO> I am trying to install Java 8 from Oracle on Tumbleweed. My wife wants RO> to update the software in her bike (seriously). I get this: RO> # rpm -i jre-8u251-linux-x64.rpm RO> warning: jre-8u251-linux-x64.rpm: Header V3 RSA/SHA256 Signature, key RO> ID ec551f03: NOKEY RO> Unpacking JAR files... RO> plugin.jar... RO> javaws.jar... RO> deploy.jar... RO> rt.jar... RO> jsse.jar... RO> charsets.jar... RO> localedata.jar... RO> update-alternatives: error: alternative javaws can't be slave of java: RO> it is a slave of libjavaplugin.so.x86_64 RO> warning: %post(jre1.8-1.8.0_251-fcs.x86_64) scriptlet failed, exit status 2 RO> I didn't see any clear instructions for when this happens. I tried RO> uninstalling the existing jre 1.8, but that did not help. MN> Maybe, your uninstallation failed. MN> How about this; MN> # rpm -e --nodeps jre1.8-1.8.0_251-fcs.x86_64 MN> # rpm -ivh jre-8u251-linux-x64.rpm I'm so sorry. I've installed jre-8u251-linux-x64.rpm. # rpm -ivh jre-8u251-linux-x64.rpm Gave me the same result as yours. So, I've installed jre-8u251-linux-x64.rpm via YaST2, but update-alternatives didn't include jre-8u251-linux-x64.rpm. Then I added it manually to update-alternatives. It's a very troublesome task for me. Yet, I couldn't convince myself, so I searched the more easier method. I found this; https://en.opensuse.org/SDB:Installing_Java and realized, my procedure was correct. HTHs, --- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ┃\/彡 ┗━━┛ "No Windows, no gains!" ..... "Why, I am wrong?" -- Bill -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Andrei Borzenkov
-
Bjoern Voigt
-
Masaru Nomiya
-
Roger Oberholtzer