![]() Save and close the file, then activate the Java path using the following command: source /etc/profile.d/java.sh You can do it by creating the file java.sh: nano /etc/profile.d/java.shĪdd the following lines: export JAVA_HOME=/opt/jdk-16.0.2 Next, you will need to add the Java source path to the system environment. Next, move the extracted directory to the /opt directory: mv jdk-16.0.2 /opt/ ![]() Once the download is completed, extract the downloaded file with the following command: tar -xvf openjdk-16.0.2_linux-圆4_ By default, the latest version is not available in the Rocky Linux 8 default repository, so you will need to install it from the source.įirst, download the latest version of OpenJDK from the Java official website: curl -O Install OpenJDK 16Īt the time of writing this article, the latest version of Java OpenJDK is version 16.0.2. In this section, we will show you how to install OpenJDK version 16, 11, and 8 on Rocky Linux 8. ![]() Once you are logged in to your server, run the following command to update your base system with the latest available packages. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page. Create a new server, choosing Rocky Linux 8 as the operating system with at least 2GB RAM. A root password configured on your serverįirst, log in to your Atlantic.Net Cloud Server.A server running Rocky Linux 8 on the Atlantic.Net Cloud Platform.In this post, we will show you how to install and manage different Java versions on Rocky Linux 8. JDK is a collection of programming tools including Javac, JRE, Jar, and Java. Java JDK is a free, open-source, and powerful software development environment used for developing Java Applications. It can be provided by OpenJDK or Oracle JDK. In order to develop Java applications, you will need to install an IDE on your system. Java can be run on all operating systems. Additionally, you can use Java to create games, chatbots, enterprise applications, and more. Java is the most popular programming language used to build applications and systems.
0 Comments
Leave a Reply. |