Outils pour utilisateurs

Outils du site


welcome:fedora:java

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

welcome:fedora:java [2019/08/29 16:37] (Version actuelle)
Ligne 1: Ligne 1:
 +**<color #22b14c>Settings for Java</color>**  {{howhard>2}} \\ \\ 
 +**Target:** being able to run [[https://www.routeconverter.de/home/de|Routeconverter]] \\ \\
  
 +<note important>Other java scripts like "Mytourbook" may need a different version of Java! \\ For switching between different versions: See at the end.</note>
 +
 +Following instructions are working on Fedora30 to run the file ''RouteConverterLinux.jar''.
 +    * Check wich version of Java is installed on the machine <code>$ 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 </code> by me.
 +  * Install java11 <code>$ sudo dnf install java-11-openjdk</code>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 <code>$ 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) </code>
 +  * Switch to Version 11 per default by selecting **"2"** <code>$ 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)
 +             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) </code>
 +
 +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