Java error during Calibre installation

General support questions
hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Java error during Calibre installation

Post by hunter86_bg » 2019/06/24 14:41:53

You can use

Code: Select all

yum whatprovides 'relative-or-full-path-to-library-with-or-without-*'
The quotes might not be needed (in case you don't use wildcards -> *).

kaUngra
Posts: 8
Joined: 2019/03/22 08:32:57

Re: Java error during Calibre installation

Post by kaUngra » 2019/06/24 16:07:09

I've tried this:

Code: Select all

yum whatprovides java
Plugin abilitati:copr, fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.prometeus.net
 * epel: ftp-stud.hs-esslingen.de
 * extras: mirrors.prometeus.net
 * nux-dextop: li.nux.ro
 * updates: mirrors.prometeus.net
1:java-1.7.0-openjdk-1.7.0.191-2.6.15.5.el7.x86_64 : OpenJDK Runtime Environment
Repo         : base
Corrispondenza trovata in:
Fornisce    : java = 1:1.7.0



1:java-1.7.0-openjdk-1.7.0.201-2.6.16.1.el7_6.x86_64 : OpenJDK Runtime Environment
Repo         : updates
Corrispondenza trovata in:
Fornisce    : java = 1:1.7.0



1:java-1.7.0-openjdk-1.7.0.211-2.6.17.1.el7_6.x86_64 : OpenJDK Runtime Environment
Repo         : updates
Corrispondenza trovata in:
Fornisce    : java = 1:1.7.0



1:java-1.7.0-openjdk-1.7.0.221-2.6.18.0.el7_6.x86_64 : OpenJDK Runtime Environment
Repo         : updates
Corrispondenza trovata in:
Fornisce    : java = 1:1.7.0



1:java-1.8.0-openjdk-1.8.0.181-7.b13.el7.i686 : OpenJDK Runtime Environment
Repo         : base
Corrispondenza trovata in:
Fornisce    : java = 1:1.8.0



1:java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64 : OpenJDK Runtime Environment
Repo         : base
Corrispondenza trovata in:
Fornisce    : java = 1:1.8.0



1:java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.i686 : OpenJDK Runtime Environment
Repo         : updates
Corrispondenza trovata in:
Fornisce    : java = 1:1.8.0



1:java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64 : OpenJDK Runtime Environment
Repo         : updates
Corrispondenza trovata in:
Fornisce    : java = 1:1.8.0



1:java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.i686 : OpenJDK Runtime Environment
Repo         : updates
Corrispondenza trovata in:
Fornisce    : java = 1:1.8.0



1:java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64 : OpenJDK Runtime Environment
Repo         : updates
Corrispondenza trovata in:
Fornisce    : java = 1:1.8.0



1:java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64 : OpenJDK Runtime Environment 8
Repo         : updates
Corrispondenza trovata in:
Fornisce    : java = 1:1.8.0



1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.i686 : OpenJDK Runtime Environment 8
Repo         : updates
Corrispondenza trovata in:
Fornisce    : java = 1:1.8.0



1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64 : OpenJDK Runtime Environment 8
Repo         : updates
Corrispondenza trovata in:
Fornisce    : java = 1:1.8.0



1:java-11-openjdk-11.0.ea.28-7.el7.i686 : OpenJDK Runtime Environment 11
Repo         : base
Corrispondenza trovata in:
Fornisce    : java = 1:11



1:java-11-openjdk-11.0.ea.28-7.el7.x86_64 : OpenJDK Runtime Environment 11
Repo         : base
Corrispondenza trovata in:
Fornisce    : java = 1:11



1:java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64 : OpenJDK Runtime Environment 8
Repo         : @updates
Corrispondenza trovata in:
Fornisce    : java = 1:1.8.0


However, the programs I'm trying to install do have a local version of Java and that one is not working.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Java error during Calibre installation

Post by aks » 2019/06/24 17:26:36

Seemingly the so libs are found, which is kind of unfortunate because it'll be harder - it'll be something loaded at runtime then (there's more to Java than just the launching binary and the so calls - specifically Java "eats it's own dog food" by loading a bunch of jars too).

Among the really important ones are:
rt.jar # This is the guy that usually provides java.lang.Object class
resources.jar
jsse.jar

If you have a working installation, compare the java files between the working and broken machines.

Failing that you'll have to trace it. I'm kind of lazy for learning new things, so I'd just do something like:

strace -f /install.ixl/JRE/bin/java > out 2>&1

and then search towards the end for errors (especially file not found). The unfortunate thing with this is that you'll see a lot of file not founds as the linker looks in various places for various things which is actually normal.

As an aside the system level java (installed with rpm/yum) is kind of irrelevant to this story as you've got a vendor supplied (and out dated) java - unless you have JAVA_HOME JRE_HOME et al environment variables defined.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Java error during Calibre installation

Post by aks » 2019/06/24 17:29:23

EDIT: Also check the file permissions of those files. Can the guy who is running the application/installer read and/or execute those files?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Java error during Calibre installation

Post by TrevorH » 2019/06/24 17:30:27

Did you contact the vendor yet? It's their product, their bundled copy of java. I did suggest this 3 months ago when you first asked...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Java error during Calibre installation

Post by aks » 2019/06/24 17:35:49

Or do what Trevor says (^^^) - that's the easiest.

Post Reply