Java error during Calibre installation

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

Java error during Calibre installation

Post by kaUngra » 2019/03/22 09:04:05

Hello!
I'm trying to install Mentor Calibre on CentOS 7.
The Calibre version is 2018.4.17
The calibre.exe file generates an installation folder named install.ixl where there is a local Java version (1.6.0).

Launching the install script, I get the following error:

Code: Select all

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
*** Warning with: ./install
The version of ./JRE/bin/java may not be correct!
...Required: "1.6.0"
...Found: Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
...Please check that you have correctly installed the Mentor Install program that contains the Java Runtime Environment.
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
The reason is that the install script is invoking the local Java installation which is located in install.jxl/JRE/bin but this version seems not to work. The command install.jxl/JRE/bin/java -version generates this error:

Code: Select all

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
I've also installed a java 1.6 version and set it up with the command alternatives --config java but this did not solve the issue.
I've checked this procedure with RHEL 7 and it works perfectly. On the web there are also videos showing the installation procedure on CentOS and it is perfect.
It seems to be a java problem. Can it be due to the presence of multiple Java versions?
Do you have any idea?
Error windows
Error windows
image.jpg (127.12 KiB) Viewed 2673 times

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/03/22 15:49:51

It sounds like a problem you need to take up with the vendor. It's supplying its own java and then that copy of java doesn't work...
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

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

Re: Java error during Calibre installation

Post by kaUngra » 2019/03/22 16:54:57

I do not think so. I've tested on a rhel 7 and it works. I believe it is an issue of my server but I cannot find where it is coming

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/03/22 20:00:11

For the test, set the SELINUX to permissive and try again:

Code: Select all

setenforce 0

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

Re: Java error during Calibre installation

Post by kaUngra » 2019/03/26 20:59:56

Thanks for the reply. I tried to run the selinux command but I get exactly the same error. What a pain!

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

Re: Java error during Calibre installation

Post by kaUngra » 2019/03/26 22:24:23

BTW, the calibre installation works perfectly if I try it on another 64 bit centos 7. :oops:

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

Re: Java error during Calibre installation

Post by kaUngra » 2019/06/24 13:26:11

I come back on this topic because the error is persisting and it is present also for other softwares. Each time the installation of a program requires the JRE I get the same error: "Error: no `server' JVM at..." do you have any idea?

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

Re: Java error during Calibre installation

Post by kaUngra » 2019/06/24 13:34:43

I've found a possible solution https://stackoverflow.com/questions/315 ... -you-use-j but I do not know how to implement it. Can someone help please?

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

Re: Java error during Calibre installation

Post by aks » 2019/06/24 14:03:02

Mentor Calibre

Not familiar with it.

calibre.exe

Is that an ELF binary?
java/lang/NoClassDefFoundError: java/lang/Object
Means java can not find it's core librar(ies) as in the Java language.
install.jxl/JRE/bin/java -version generates this error:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
Still can't find core lib(s).

At a guess, can't find: libjli.so
Or it could be an in-compatibility with libc (which would be a massive problem). After all Java 6 was deprecated a long time ago.
Or it could be that it's finding an incompatible core library (I guess you could just define JAVA_HOME or JRE_HOME to overcome that).

What happens if you run ldd on the java executable (i.e.: ldd install.jxl/JRE/bin/java)?

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

Re: Java error during Calibre installation

Post by kaUngra » 2019/06/24 14:29:10

Thanks for the reply.
I get this message after typing the ldd command:

$ ldd ./install.ixl/JRE/bin/java

Code: Select all

	linux-gate.so.1 =>  (0xf77a2000)
	libpthread.so.0 => /lib/libpthread.so.0 (0xf7765000)
	libjli.so => /home/EDA_InstallFiles/Mentor/calibre_2018.4_17/./install.ixl/JRE/bin/../lib/i386/jli/libjli.so (0xf775c000)
	libdl.so.2 => /lib/libdl.so.2 (0xf7757000)
	libc.so.6 => /lib/libc.so.6 (0xf758b000)
	/lib/ld-linux.so.2 (0xf77a3000)

Post Reply