![]() Once you set up the default Java, verify it using the following command. *+ 1 /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/javaĮnter to keep the current selection, or type selection number: 2 There are 2 programs which provide 'java'. I chose Oracle Java 11 as the default version. Select the java version you want to set as the default. Run the below command to set the default Java version on your system. Update-alternatives -install /usr/bin/java java /usr/jdk1.8.0_211/bin/java 3 Set Default Java Version Update-alternatives -install /usr/bin/java java /usr/jdk-11.0.3/bin/java 2 Update-alternatives -install /usr/bin/java java /usr/jdk-12.0.1/bin/java 1 This will install the java on your system. Once moved the java to the desired location, java must setup with the alternatives command. Wget -no-check-certificate -no-cookies -header "Cookie: oraclelicense=accept-securebackup-cookie" Įxtract and move to the desired location. If you still want to use the command line, use the wget command to download packages. You can either use command line or browser to download the JDK, better to use the browser, the easiest one. Java JDK is the most important base to the developers this guide will be more useful for them to set up a development environment when they especially use Red Hat or CentOS. Today we will be looking into the installation of Oracle Java on CentOS 6.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |