# alternatives -set javac /opt/jdk-16.0.1/bin/javac Set Java Environment Variables :Īfter the set of javac and JRE paths, we will set the environment variables in Linux. # alternatives -set jar /opt/jdk-16.0.1/bin/jar # alternatives -install /usr/bin/javac javac /opt/jdk-16.0.1/bin/javac 2 Now we should set jar and javac path # alternatives -install /usr/bin/jar jar /opt/jdk-16.0.1/bin/jar 2 # alternatives -install /usr/bin/java java /opt/jdk-16.0.1/bin/java 2 Go to the extracted folder of java and run like below command as showing. Alternatives command is the best way to install java. Now we have got extracted folder of java. OpenJDK JDK binaries available for Linux on as compressed zip or tar.gz archive. We will go into the /tmp folder and extract it there. We downloaded the JDK file in our temp folder. You have to download the tar archive file. Below are the steps to extract download JDK files in a temporary folder in Linux. Two Method to download and Install Method(1) : Through yum repository Method(2) : Through Linux Binaries 2: Download & Install Java JDK through Linux Binaryĭownload the latest Java SE Development Kit from its official Java vendor website. Here We are going to install the latest Java JDK version on the CentOS Linux Operating system Below is my CentOS Server information. This article explains to you how to install and configure Java JDK’s latest version on CentOS /RHEL servers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |