Hello everyone. I have recently installed Java in CL. It’s not the version from swupd, since the .jar I was trying to use needed a higher version of Java. I followed the instructions dictated here:
https://www.java.com/en/download/help/linux_x64_install.html
Yet, after extracting Java in */usr/local, it doesn’t really work. I go to the terminal, I type “java” but it doesn’t get recogniced, it doesn’t work.
I’m not exactly sure what’s wrong because I followed what the Java Official Page said, but I suspect that maybe I need to change the path or something to my Terminal so it can recognice Java and then I can then open .jar files?
In the meantime, I managed to install it using the official .rpm using the commands listed here:
https://java.com/en/download/help/linux_x64rpm_install.html
And… yeah, it seems to work fine as of now, the only thing that bothers me if that the install didn’t quite work at first, and had to use the “–nodeps” argument in order to get the install rolling, this is the errors I had:
rpm -ivh yaba.rpm
warning: yaba.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
error: Failed dependencies:
/bin/basename is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/cat is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/cp is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/gawk is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/grep is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/ln is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/ls is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/mkdir is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/mv is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/pwd is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/rm is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/sed is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/sort is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/touch is needed by jre1.8-1.8.0_311-fcs.x86_64
/usr/bin/cut is needed by jre1.8-1.8.0_311-fcs.x86_64
/usr/bin/dirname is needed by jre1.8-1.8.0_311-fcs.x86_64
/usr/bin/expr is needed by jre1.8-1.8.0_311-fcs.x86_64
/usr/bin/find is needed by jre1.8-1.8.0_311-fcs.x86_64
/usr/bin/tail is needed by jre1.8-1.8.0_311-fcs.x86_64
/usr/bin/tr is needed by jre1.8-1.8.0_311-fcs.x86_64
/usr/bin/wc is needed by jre1.8-1.8.0_311-fcs.x86_64
/bin/sh is needed by jre1.8-1.8.0_311-fcs.x86_64
With --nodeps it went like this:
rpm -ivh yaba.rpm --nodeps
warning: yaba.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Verifying… ################################# [100%]
Preparing… ################################# [100%]
Updating / installing…
1:jre1.8-1.8.0_311-fcs ################################# [100%]
Unpacking JAR files…
plugin.jar…
javaws.jar…
deploy.jar…
rt.jar…
jsse.jar…
charsets.jar…
localedata.jar…
/usr/sbin/alternatives not available, skip registering alternatives for java…
So far Java seems to work fine, but I’m a bit worried that I may run into trouble in the future, should I continue to use it like this? Or should I keep trying to do the manual install with the .tar.gz? Thanks in advance!