How do i set alternatives on redhat?



  • The alternatives system is a way maintaining symbolic links to different versions of software. Typically used for java, perl, etc.

    If you have multiple versions of java install, to see the config, the "+" symbol show what is currently set. To change it to version 1.7.0 choose number one, then run this command again to verify.

    # alternatives --config java
    
    There are 2 programs which provide 'java'.
    
      Selection    Command
    -----------------------------------------------
    *  1           /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
     + 2           /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java
    
    Enter to keep the current selection[+], or type selection number: 
    

Log in to reply
 

© Lightnetics 2024