About 126,000 results
Open links in new tab
  1. updates - How to upgrade Java on Ubuntu? - Ask Ubuntu

    Many complicated and version dependent answers here, thus I write this reply to avoid coming again here via Google and going through all this drama. The OP original questions is "How to …

  2. 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

  3. openjdk - Switch between multiple java versions - Ask Ubuntu

    Mar 1, 2016 · 248 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 …

  4. 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 …

  5. 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 …

  6. 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 …

  7. 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.

  8. java - javac 11 to 17 in Ubuntu 20.04 - Ask Ubuntu

    Jan 29, 2023 · The javac executable is not part of the openjdk-*-jdk packages. To install it, you need to install the openjdk-17-jdk-headless package: sudo apt install openjdk-17-jdk-headless …

  9. 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 …

  10. How to safely update or switch from any version of Java to Java 17 …

    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 …