mo7d95
Posts: 1
Joined: Thu Nov 16, 2017 8:37 am

missing jvm server

Thu Nov 16, 2017 8:48 am

hello everyone


I am using raspberry pi 3 with RASPBIAN STRETCH for image processing project and I was trying to install opencv but I got some problems
every time I try to install any lib or driver it keep saying missing jvm server even when I have try to instal openjdk-8-jre


this is what it shows



Setting up ca-certificates-java (20170531+nmu1) ...
Error: missing `server' JVM at `/usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server/libjvm.so'.
Please install or use the JRE or JDK that contains these missing components.
dpkg: error processing package ca-certificates-java (--configure):
subprocess installed post-installation script returned error exit status 4
dpkg: dependency problems prevent configuration of openjdk-8-jre-headless:armhf:
openjdk-8-jre-headless:armhf depends on ca-certificates-java; however:
Package ca-certificates-java is not configured yet.

dpkg: error processing package openjdk-8-jre-headless:armhf (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-8-jdk-headless:armhf:
openjdk-8-jdk-headless:armhf depends on openjdk-8-jre-headless (= 8u151-b12-1~deb9u1); however:
Package openjdk-8-jre-headless:armhf is not configured yet.

dpkg: error processing package openjdk-8-jdk-headless:armhf (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-8-jdk:armhf:
openjdk-8-jdk:armhf depends on openjdk-8-jdk-headless (= 8u151-b12-1~deb9u1); however:
Package openjdk-8-jdk-headless:armhf is not configured yet.

dpkg: error processing package openjdk-8-jdk:armhf (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-8-jre:armhf:
openjdk-8-jre:armhf depends on openjdk-8-jre-headless (= 8u151-b12-1~deb9u1); however:
Package openjdk-8-jre-headless:armhf is not configured yet.

dpkg: error processing package openjdk-8-jre:armhf (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jdk:
default-jdk depends on openjdk-8-jdk; however:
Package openjdk-8-jdk:armhf is not configured yet.

dpkg: error processing package default-jdk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jre-headless:
default-jre-headless depends on openjdk-8-jre-headless; however:
Package openjdk-8-jre-headless:armhf is not configured yet.

dpkg: error processing package default-jre-headless (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jdk-headless:
default-jdk-headless depends on default-jre-headless (= 2:1.8-58+b2); however:
Package default-jre-headless is not configured yet.
default-jdk-headless depends on openjdk-8-jdk-headless; however:
Package openjdk-8-jdk-headless:armhf is not configured yet.

dpkg: error processing package default-jdk-headless (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icedtea-netx:armhf:
icedtea-netx:armhf depends on openjdk-8-jre; however:
Package openjdk-8-jre:armhf is not configured yet.

dpkg: error processing package icedtea-netx:armhf (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icedtea-8-plugin:armhf:
icedtea-8-plugin:armhf depends on openjdk-8-jre; however:
Package openjdk-8-jre:armhf is not configured yet.
icedtea-8-plugin:armhf depends on icedtea-netx (= 1.6.2-3.1); however:
Package icedtea-netx:armhf is not configured yet.

dpkg: error processing package icedtea-8-plugin:armhf (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jre:
default-jre depends on default-jre-headless (= 2:1.8-58+b2); however:
Package default-jre-headless is not configured yet.
default-jre depends on openjdk-8-jre; however:
Package openjdk-8-jre:armhf is not configured yet.

dpkg: error processing package default-jre (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-java-plugin:
default-java-plugin depends on default-jre (= 2:1.8-58+b2); however:
Package default-jre is not configured yet.
default-java-plugin depends on icedtea-8-plugin; however:
Package icedtea-8-plugin:armhf is not configured yet.

dpkg: error processing package default-java-plugin (--configure):
dependency problems - leaving unconfigured
Processing triggers for ca-certificates (20161130+nmu1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

Error: missing `server' JVM at `/usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server/libjvm.so'.
Please install or use the JRE or JDK that contains these missing components.
E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
done.
Errors were encountered while processing:
ca-certificates-java
openjdk-8-jre-headless:armhf
openjdk-8-jdk-headless:armhf
openjdk-8-jdk:armhf
openjdk-8-jre:armhf
default-jdk
default-jre-headless
default-jdk-headless
icedtea-netx:armhf
icedtea-8-plugin:armhf
default-jre
default-java-plugin
E: Sub-process /usr/bin/dpkg returned an error code (1)

rpiFreak
Posts: 3
Joined: Mon Nov 20, 2017 8:44 am

Re: missing jvm server

Mon Nov 20, 2017 8:47 am

Did you find any way out? I am facing the same problem.

ak74
Posts: 3
Joined: Sun Oct 23, 2016 8:39 pm

Re: missing jvm server

Mon Nov 20, 2017 8:04 pm

Hi,

I solved the problem. Here is what I did:
1. I installed jdk8 following http://www.rpiblog.com/2014/03/installi ... ry-pi.html
2. I copied missing libjvm.so

Code: Select all

sudo cp /opt/jdk1.8.0_151/jre/lib/arm/server/libjvm.so /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server/
3. It is solved! :)

rpiFreak
Posts: 3
Joined: Mon Nov 20, 2017 8:44 am

Re: missing jvm server

Tue Nov 21, 2017 6:57 am

Thanks for your prompt reply. I already have JDK 1.8.0_131 installed still I installed JDK 1.8.0_151. After executing the code you suggested it shows:
  • cp: cannot stat '/opt/jdk1.8.0_151/jre/lib/arm/server/libjvm.so': No such file or directory

Please help me fix this error.

Thanks

rpiFreak
Posts: 3
Joined: Mon Nov 20, 2017 8:44 am

Re: missing jvm server

Tue Nov 21, 2017 9:21 am

Update:

I fixed this error using the below code:

Code: Select all

sudo apt-get purge openjdk-8-jre-headless
sudo apt-get install openjdk-8-jre-headless
sudo apt-get install openjdk-8-jre
Thanks.

Remi J
Posts: 2
Joined: Sat Nov 25, 2017 4:05 pm

Re: missing jvm server

Sat Nov 25, 2017 4:14 pm

I found a Very simple solution that is working find to sort out this issue.

I did installed freeplane that was not working and I get the error message by the end of the installation : missing server JVM at /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server/libjvm.so'

After installing, I proceed the following :

--> Go to the location (copy past in the finder the following location) : /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm
--> Click right on arm directory and select Open directory with the terminal
--> In LXterminal: copy client directory to a new directory server, by the follow terminal command : cp -r client server
--> Reboot your system : sudo reboot
It will now work !

Remi J
Posts: 2
Joined: Sat Nov 25, 2017 4:05 pm

Re: missing jvm server

Sat Nov 25, 2017 4:18 pm

I found a Very simple solution that is working find to sort out this issue.

I did installed freeplane that was not working and I get the error message by the end of the installation : missing server JVM at /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server/libjvm.so'

After installing, I proceed the following :

--> Go to the location (copy past in the finder the following location) : /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm
--> Click right on arm directory and select Open directory with the terminal
--> In LXterminal: copy client directory to a new directory server, by the follow terminal command : cp -r client server
--> Reboot your system : sudo reboot
It will now work !

gabsi12
Posts: 1
Joined: Mon Dec 04, 2017 4:19 pm

Re: missing jvm server

Mon Dec 04, 2017 4:41 pm

Hello guys, I did some resurch and found out that if you have downloaded Java SE Development Kit 8 (JDK 8), there there is a "client" -folder, which is the same as the "server" -folder your Pi is surching for. So you just have to change the name from "client" to "server".

1.

Code: Select all

cd
2.

Code: Select all

sudo mv /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/client /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server
Then try to install again.

I hope I could help.

el_shmc
Posts: 5
Joined: Tue Oct 24, 2017 7:51 pm

Re: missing jvm server

Fri Dec 22, 2017 8:59 am

gabsi12 wrote:
Mon Dec 04, 2017 4:41 pm
Hello guys, I did some resurch and found out that if you have downloaded Java SE Development Kit 8 (JDK 8), there there is a "client" -folder, which is the same as the "server" -folder your Pi is surching for. So you just have to change the name from "client" to "server".

1.

Code: Select all

cd
2.

Code: Select all

sudo mv /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/client /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server
Then try to install again.

I hope I could help.
Great, works like a charm!

amal.barman
Posts: 1
Joined: Wed May 30, 2018 10:36 am

Re: missing jvm server

Wed May 30, 2018 10:45 am

I have done same as gabsi12 except moving client to server, I have create a soft link as follows in two steps:

$cd /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm
$sudo ln -s client server

Return to “General discussion”