About 292,000 results
Open links in new tab
  1. openjdk - Switch between multiple java versions - Ask Ubuntu

    Mar 1, 2016 · 251 Apt-get won't overwrite the existing java versions. To switch between installed java versions, use the update-java-alternatives command. List all java versions: update-java-alternatives - …

  2. How to safely update or switch from any version of Java to Java 17 on ...

    Mar 25, 2024 · I have Ubuntu 22.04 installed on a Virtualbox VM running on Windows 10. I have to switch the current version of Java installed on my Ubuntu to Java 17, which is the most recent …

  3. updates - How to upgrade Java on Ubuntu? - Ask Ubuntu

    I installed Ubuntu on my computer, and now my Java version is not updated. I have Java, so I don't need to install - just update the current version. Can someone please tell me the command I have t...

  4. apt - install openjdk 21 - Ask Ubuntu

    Nov 13, 2023 · Additionally, I suggest the headless version, which excludes packages for GUI components (such as Swing, JavaFX, and AWT): sudo apt install openjdk-21-jdk-headless

  5. Is there a way to update all Java related alternatives?

    The trick is to use update-java-alternatives (from the java-common package). So to go for OpenJDK 6 to 7, I used update-java-alternatives -l to get a list of Java alternatives and then used sudo update-java …

  6. update-java-alternatives vs update-alternatives --config java

    However, using update-java-alternatives with a JDK Version changes both programs for me. Using the first commands, you can use a Java VM and Java Compiler from different JDKs.

  7. How to set default Java version? - Ask Ubuntu

    Apr 13, 2012 · I followed all the instructions stated at this question, but am encountering some problems with the last part of it. I actually have version 6.22 of java and would like to update to version 6.30. ...

  8. How do I make java default to a manually installed JRE/JDK?

    I have Ubuntu 12.04 amd64 installed on my machine, on the previous versions of Ubuntu it was deadly easy, now there is this command update-java-alternatives with a really bad man page. I just have...

  9. 12.04 - Updating java version to 8 on ubuntu - Ask Ubuntu

    Jan 29, 2016 · I would like to update my java version (UPDATE, not install) on my ubuntu 12.04 computer. I currently have java 7.x, and I would like to update it to the newest version possible (8.0 …

  10. I cannot set default java with update-alternatives - Ask Ubuntu

    Jun 10, 2020 · I have installed three Versions of Java. I tried to set a default option with update-alternatives. However, it didn't change the default. What am I missing? I know that one is from JRE …