So first you have to open in terminalĪfter that, update Debian 11 as follows sudo apt update Java is owned by Oracle but thanks to the free OpenJDK implementation we can install it from the official Debian 11 repositories. Java is a versatile programming system with a multitude of applications since its scope of application is so wide that Java is used in both mobile phones and household appliances. When Java is combined with other powerful tools, it allows us to create complete, robust, scalable, portable, and distributed applications. To achieve this, Java has a JVM that does the translations and implementations. It was born with the goal that programmers would only have to write the code for a program once, and that the program would run on any device. Java is a class-based, object-oriented programming language. Or you need to run a program that uses this technology that is still in use today. So it is necessary to learn how to install Java on Debian 11 if you plan to make use of this language. This will open or create the file with the name of itslinuxfoss.Debian 11 is quite popular among developers and professionals using Java. Type the following command in your terminal to create a file: $ sudo nano itslinuxfoss.java For this purpose, we have to create a file or open an existing file. Now that we have installed Java, let us write a program and execute it in Java. Type the following command on your terminal: $ javac -version First Program in Java Let us check the JDK version we installed on our system/Debian11. For this purpose we have to use the following command: $ java -version Once we are done with the installation let us verify that the installation was successful or not. It is also worth mentioning that you can have both of these versions on your system. To install Open JDK17 type or copy the following command in your terminal: $ sudo apt install openjdk-17-jre openjdk-17-jdk If we want to go for the latest version then it is the Java Open JDK17. To achieve this type or copy the following command in your Debian 11 terminal: $ sudo apt install default-jre default-jdk 2- Java OpenJDK 17Īs mentioned above, it is our preference which JDK we want to install. Let’s install the latest version of Java Open JDK 11 on Debian 11. The purpose of JRE is to help us in running all the applications that are available/developed in Java and JDK helps in developing/creating Java applications. There are also two Java platforms that we can use: It is on your preference whichever you choose between them. Installation of Javaĭebian 11 Bullseye has the latest and the stable Java version OpenJDK 11 as well as the OpenJDK 17. Not only this, but we will also teach you how to create your first program in Java. This article will walk you through each step to install/uninstall Java on Debian 11. It is for this reason that we must have Java installed on our system. Not just this, there are millions of Java apps that require you to have Java on your system otherwise those apps won’t function.Īs mentioned earlier, Java is an important tool to have on our system as Java will aid us in running Java applications and we can also develop/create multiple apps per our need. To talk in numbers, there are about 9 million developers out there who prefer the Java programming language to develop and create applications. Many developers love to develop in Java as it can be used to create Desktop applications as well as mobile apps. Java is an open-source programming language released in 1995 by Sun Microsystems.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |