Problem changing Java version using alternatives

后端 未结 6 985
遥遥无期
遥遥无期 2021-02-01 07:03

I\'m not quite sure how I got into this mess, but for some reason I\'m not able to change the current version of Java using alternatives. I can run alternatives --config java a

6条回答
  •  遇见更好的自我
    2021-02-01 07:34

    I can change the default Java on CentOS using these steps:

    1. Add the IBM JDK:

      alternatives --install /usr/bin/java java /opt/WebSphere/AppServer/java/bin/java 3
      
    2. Set the new IBM JDK as default:

      alternatives --config java   (then select #3 in the list)
      
    3. Type java -version at the prompt to see the result.

提交回复
热议问题