Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JRE Kubuntu update just broke LogiGSK? #28

Closed
JohJohOneThousand opened this issue Aug 22, 2018 · 3 comments
Closed

JRE Kubuntu update just broke LogiGSK? #28

JohJohOneThousand opened this issue Aug 22, 2018 · 3 comments

Comments

@JohJohOneThousand
Copy link

Hi team,
I'm no expert but it looks like a routine Kubuntu system update included a JRE update and now LogiGSK won't launch. Manual launch attempt:

Starting the LogiGSK service... Cannot find any VM in Java Home /usr/lib/jvm/default-java The LogiGSK service has started.

my apt log

Start-Date: 2018-08-21 17:40:22 Commandline: packagekit role='update-packages' Requested-By: [OBFUSCATED] (1000) Upgrade: libapt-inst2.0:amd64 (1.6.3, 1.6.3ubuntu0.1), apt:amd64 (1.6.3, 1.6.3ubuntu0.1), libapt-pkg5.0:amd64 (1.6.3, 1.6.3ubuntu0.1), openjdk-11-jre-headless:amd64 (10.0.1+10-3ubuntu1, 10.0.2+13-1ubuntu0.18.04.1), openjdk-11-jre:amd64 (10.0.1+10-3ubuntu1, 10.0.2+13-1ubuntu0.18.04.1), wpasupplicant:amd64 (2:2.6-15ubuntu2, 2:2.6-15ubuntu2.1), apt-utils:amd64 (1.6.3, 1.6.3ubuntu0.1) End-Date: 2018-08-21 17:40:30

All the best and thanks for the cool util :)

@andrakis
Copy link

andrakis commented Sep 5, 2018

I had the same issue on Lubuntu, and it appears that jsvc, which is reporting that first error message, is looking in slightly the wrong directory.

The fix I found was to run this:

sudo ln -s /usr/lib/jvm/default-java/lib /usr/lib/jvm/default-java/lib/amd64

I found the issue by running the jsvc command that the LogiGSK service uses to start, and added the -debug option. I saw the following telltale sign:

Checking library /usr/lib/jvm/default-java/jre/lib/amd64/server/libjvm.so
Checking library /usr/lib/jvm/default-java/lib/amd64/server/libjvm.so
Cannot locate library for VM server (skipping)

The file amd64/server/libjvm.so that it cannot find is actually in /usr/lib/jvm/default-java/lib/server/libjvm.so, and the amd64 directory did not exist.

The directory structure seems to have changed slightly, and simply symlinking amd64 to the lib directory fixes the issue for me.

This may affect other architectures, and I would suggest a similar approach be used (launching jsvc with -debug) to determine what path is being searched for, and symlinking that as above.

@JohJohOneThousand
Copy link
Author

Good job. Fixed. Thank you :)

@MohamadSaada
Copy link
Owner

@andrakis thanks for solving the problem. Great work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants