Settings for Java
Following instructions are working on Fedora30 to run the file RouteConverterLinux.jar
.
$ dnf list installed | grep java abrt-java-connector.x86_64 1.1.2-1.fc30 @updates java-1.8.0-openjdk-headless.x86_64 1:1.8.0.222.b10-0.fc30 @updates javapackages-filesystem.noarch 5.3.0-4.fc30 @fedora tzdata-java.noarch 2019b-1.fc30 @updates
by me.
$ sudo dnf install java-11-openjdk
Now 2 versions of Java are present.
By me, removing java-1.8.0 would remove things like OpenOffice due to dependencies ⇒ java-1.8.0 must stay on the machine.
$ java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
$ sudo alternatives --config java Il existe 2 programmes qui fournissent « java ». Sélection Commande ----------------------------------------------- *+ 1 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.fc30.x86_64/jre/bin/java) 2 java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.4.11-0.fc30.x86_64/bin/java) Entrez pour garder la sélection courante [+] ou saisissez le numéro de type de sélection :2 [arnaud@fedora-msi ~]$ java -version openjdk version "11.0.4" 2019-07-16 OpenJDK Runtime Environment 18.9 (build 11.0.4+11) OpenJDK 64-Bit Server VM 18.9 (build 11.0.4+11, mixed mode, sharing)
Now $ java -jar RouteConverterLinux.jar
should start the script.