Outils pour utilisateurs

Outils du site


Panneau latéral

Menu tree

welcome:fedora:java

Settings for Java

Difficulté
Facile


Target: being able to run Routeconverter

Other java scripts like “Mytourbook” may need a different version of Java!
For switching between different versions: See at the end.

Following instructions are working on Fedora30 to run the file RouteConverterLinux.jar.

  • Check wich version of Java is installed on the machine
    $ 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.

  • Install java11
    $ 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.

  • Check which version of Java is choosen per default
    $ 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) 
  • Switch to Version 11 per default by selecting “2”
    $ 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.

welcome/fedora/java.txt · Dernière modification: 2019/08/29 16:37 (modification externe)

DokuWiki Appliance - Powered by TurnKey Linux