zoukankan      html  css  js  c++  java
  • Switching JRE Version

    Switching between installed Java versions can be accomplished using the update alternatives command.

    • To get a list of your installed Java platforms, run the following command from the terminal:

      sudo update-alternatives --config java

      This will give you a list output similar to this:

      There are 2 choices for the alternative java (providing /usr/bin/java).SelectionPathPriorityStatus------------------------------------------------------------0/usr/lib/jvm/java-6-oracle/jre/bin/java         1070auto mode
        1/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java   1051      manual mode
      *2/usr/lib/jvm/java-6-openjdk-i386/jre/bin/java   1069      manual mode
      Press enter to keep the current choice[*], or type selection number:

    In this case, the Open JDK 6 version is running. To switch to the Open JDK version 7, you would select option 1 at the prompt and press the Enter key.

    You will now be running the OpenJDK 7 version. No other changes will be needed to switch your Java versions.

  • 相关阅读:
    iOS中的两种主要架构及其优缺点浅析
    iOS
    iOS开发人员不容错过的10大工具
    安装CocoaPods报错
    把你唱的歌用乐器表达出来

    String.Split函数
    四部和声
    SerializeField和HideInInspector
    十年许嵩雅俗共赏
  • 原文地址:https://www.cnblogs.com/winscoder/p/3545272.html
Copyright © 2011-2022 走看看