#1 2018-03-14 11:23:12

pyxis
Member
Registered: 2018-03-14
Posts: 1

Linux Mint 18.3: "GeneralSync cannot start in your JVM"

After sudo apt-get install default-jre and chmod a+x generalsync update I get as before these changes the following message: "GeneralSync cannot start in your JVM due to the following issues: This JVM does not support AES, RSA-4096, SHA-256 and SHA-512. If you can see this message, your JVM is strange."

Linux Mint 18.3

xxxxx@xxxxx-ThinkCentre-M710s ~ $ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 8.0.5.0 - pxa6480sr5-20170905_01(SR5))
IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64 Compressed References 20170901_363591 (JIT enabled, AOT enabled)
J9VM - d56eb84
JIT  - tr.open_20170901_140853_d56eb84
OMR  - b033a01)
JCL - 20170823_01 based on Oracle jdk8u144-b01

xxxxx@xxxxx-ThinkCentre-M710s ~ $ javac -version
Das Programm »javac« ist in folgenden Paketen enthalten:
* default-jdk
* ecj
* gcj-5-jdk
* openjdk-8-jdk-headless
* gcj-4.8-jdk
* gcj-4.9-jdk
* openjdk-9-jdk-headless
Versuchen Sie: sudo apt install <ausgewähltes Paket>
xxxxx@xxxxx-ThinkCentre-M710s ~ $

What shoul I do?

#2 2018-03-14 21:06:51

ds
Founder / Developer
From: Freiburg, Germany
Registered: 2016-06-15
Posts: 263

Re: Linux Mint 18.3: "GeneralSync cannot start in your JVM"

pyxis wrote:

I get [...] the following message: "GeneralSync cannot start in your JVM due to the following issues: This JVM does not support AES, RSA-4096, SHA-256 and SHA-512. If you can see this message, your JVM is strange."

This error message is generated if Java doesn't support cryptographic primitives required for GeneralSync and there are no fallback implementations available. The default JVMs of current major distributions support all required features for GeneralSync.

Which leads me to your Java version: I tried to reproduce your problem in a fresh installation of Linux Mint 18.3. However, the default JRE installed in my test environment does not match your output. You probably installed an alternative Java implementation before, and selected that implementation as default.

To list all installed JVMs and select a new standard, you can use the following command:

sudo update-alternatives --config java

The current default JVM for 18.3 is "/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java". If you do not want to change your system-wide defaults, execute GeneralSync with a different search path, such as

PATH="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/:$PATH" /path/to/generalsync

Note that the second solution requires you to update the path whenever Linux Mint changes its default JRE. I'd thus recommend to change the standard, and manually assign the non-default JVM only to programs that need it (if any).

Edit: added missing "/usr" in the paths for the default installation.

Last edited by ds (2018-03-14 21:09:07)

Board footer