![]() But that, you have to choose between installing the JRE (Java Runtime Environment) or the JDK (Java Development Kit) version for Java. In this article, I am going to show you how you can download the latest Java from Oracle and install it on your Ubuntu machine. You can use the CLI (Command Line Interface) where you will install via the terminal, or you can download the package and install it using GUI (Graphical User Interface). There are many ways to install Java on Ubuntu. Based on the installed version and your need for the other versions, you can remove the older one and install the newer version or you can keep both of them and make one version the default version. If it says "java not found" (like you see in the image above), then you can be sure that your system does not have Java installed.īut if it returns any version of Java or JDK (Java Development Kit), then Java is already installed on your machine. Then run the command: java -version java -version You can also use the shortcut keys for opening the terminal on Ubuntu: Ctrl + Alt + T Open the terminal But if it returns something different, then we can assume that you do not have Java installed or it is not configured correctly. If it returns any version, then that means a version of Java is already installed on your machine. How to Check Java Version on Ubuntuīefore proceeding further, you might want to check whether you already have Java installed on your Ubuntu. ![]() By the way, if you're wondering, "Hey Fahim! Who told you that installing Java on Windows is easier?", then you should probably check out my article on how to install Java on Windows. You can find the video at the end of this article. I have also created a full-length video showing all of the procedures. I will explain each of the processes with appropriate screenshots and test runs. In this article, I will cover everything you need to know and do to configure your Ubuntu operating system for Java development. However, if you're a Java developer who is migrating from a Windows machine to an Ubuntu based Linux machine, you might find it tedious to configure the latest version of Java on Ubuntu as opposed to Windows where you simply have to download and install the latest version, and add the directory to the path variable. ![]() Ubuntu is one of the most commonly used Linux distributions, and most people who would like to try out the Linux operating system for the first time usually start their Linux journey with Ubuntu. Yes, I know that you're wondering about other Linux distributions like Fedora or Arch, and so on, but each distribution has some specific advantages and disadvantages over others. But this is usually not the case as we've come to a realization that installing and configuring some specific tools on Linux might be more time-consuming than on Windows or MacOS.Īn example of this can be seen when you want to install the latest version of Java on Ubuntu and make it your default Java version. Installing software on Linux is usually easier, or at least that's what it seems like.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |