I installed Java 10 alongside openjfx-11 to launch IGV and it worked fine until last week when I used ANACONDA to install another program. Somehow the installation (either of Anaconda itself or of the selected program) must have messed with java because only java 10 was available and IGV did not run any more.
$ sudo update-alternatives --config java
[sudo] password for gigiux:
There are 3 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-10-oracle/bin/java 1091 auto mode
1 /usr/lib/jvm/java-10-oracle/bin/java 1091 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/bin/java 2 manual mode
3 /usr/lib/jvm/jdk-11.0.1/bin/java 1 manual mode
Press <enter> to keep the current choice[*], or type selection number: 0
update-alternatives: using /usr/lib/jvm/java-10-oracle/bin/java to provide /usr/bin/java (java) in auto mode
$ igv
Unrecognized option: --module-path=/home/gigiux/src/IGV/lib:/usr/share/java/openjfx-sdk-11/lib
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
You can see that I selected java 10 (option 0) but does not work even with the other options; igv is a soft link to igv.sh. The line to get openjfx in this files is: