Phyloviz not working with AdoptOpenJDK 11

Issue #16 resolved
Louis Lignereux created an issue

Hello,

Since JAVA is no longer accessible for free, I am trying to make Phyloviz work with the JAVA alternative AdoptOpenJDK 11 on macOS11.1.

So far I am getting the following message in the terminal:

“The operation couldn’t be completed. Unable to locate a Java Runtime that supports (null).
Please visit http://www.java.com for information on installing Java.

Cannot find java. Please use the --jdkhome switch.
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]”

I hope you can help,

Thank you very much,

Louis

Comments (6)

  1. Bitbucket user

    Hi,

    I just tried with OpenJDK 11 in Debian and it seems to be working as expected. Can you provide the output of java command while running

    java -version
    

    at the command line?

    Thanks.

  2. Louis Lignereux reporter

    Hello,

    I have tried with OpenJDK 15 as well with no success:

    openjdk version "15.0.2" 2021-01-19
    OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.2+7)
    OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.2+7, mixed mode, sharing)

    Cheers,

    Louis

  3. Louis Lignereux reporter

    The fix was found:

    in phyloviz/etc/phyloviz.conf, the path to java was modified to:

    default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
    jdkhome="/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home"
    

    Phyloviz now opens.

    However, I have a new issue now: I am getting the following message:

    “libjnidispatch-440.jnilib” cannot be opened because the developer cannot be verified”

    And after computing the dataset, the trees don’t appear ;(

  4. Log in to comment