You are not logged in.

#1 2018-04-03 12:58:52

Simurgh
Member
From: Europe
Registered: 2016-01-16
Posts: 31

Error: failed to load VM runtime library!

Hi, so I'm having troubles with java:

jre/lib/amd64/server/libjvm.so: cannot open shared object file: No such file or directory
Error: failed to load VM runtime library!

My libjvm.so is in

/usr/lib/jvm/java-8-openjdk/jre/lib/amd64/server/

Apparently I'm supposed to set LD_LIBRARY_PATH and I tried to follow online solutions which told me to

sudo R CMD javareconf

but I just get a "command not found" and somehow don't understand what that "R CMD" is and why I should have it / where to get it?


Signature is WIP

Offline

#2 2018-04-03 13:32:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: Error: failed to load VM runtime library!

What exactly are you trying to do? Are you trying to run a specific program or is simply running java enough to trigger that error

Verify package integrity with

pacman -Qkk jre8-openjdk-headless

reinstall if necessary and make sure you've properly set up the java environment

Offline

#3 2018-04-03 14:45:04

Simurgh
Member
From: Europe
Registered: 2016-01-16
Posts: 31

Re: Error: failed to load VM runtime library!

I'm trying to run a java program via an executable. If I use the .jar file directly it works.

There were no files altered, and archlinux-java just confirmed my installed jdk, I also did

archlinux-java fix

but nothing happened. How exactly do I make sure that my java environment is set up correctly?


Signature is WIP

Offline

#4 2018-04-03 14:47:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: Error: failed to load VM runtime library!

What executable? Which program are we talking? Post the entire output and command used: https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

Board footer

Powered by FluxBB