To view the version of a JDK that is already installed on this computer:[[email protected] ~]# Java-versionjava version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK Client VM (b Uild 1.6.0-b09, Mixed mode)If it's not the JDK you need, how do I uninstall it? And how do you install the JDK you need?Uninstall jdk****************************** installed on this machineFirst find the JDK that th
Step 1: Check whether the built-in JDK of Linux is installed (uninstall centOS 1.6 installed). after CentOS is installed, it comes with OpenJdk. run the java-version command. the following information is displayed: javaversion quot; 1.6.0 quot; OpenJDKRuntimeEnvironment (build1.6.0-b09) OpenJDK64-BitS
Step 1: Check whether the built-in JDK of Linux is installed (uninstall centOS 1.6 installed)
The installed CentOS comes with OpenJdk and uses the jav
Step 1: Check whether the built-in JDK of Linux is installed (uninstall centOS 1.4 installed). after CentOS is installed, it comes with OpenJdk. run the java-version command. the following information is displayed: javaversion quot; 1.6.0 quot; OpenJDKRuntimeEnvironment (build1.6.0-b09) OpenJDK64-BitS
Step 1: Check whether the built-in JDK of Linux is installed (uninstall centOS 1.4 installed)
The installed CentOS comes with OpenJdk and uses the jav
Install JDK in CentOS
Step 1: Check whether the built-in JDK of Linux is installed (uninstall centOS 1.6 installed)
The installed CentOS comes with OpenJdk and uses the java-version command. The following information is displayed:
Java version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)
It is best to uninstall openjdk first and install the jdk o
First step: Check if the Linux-brought JDK is installed (uninstall CentOS installed 1.4)The installed CentOS will bring openjdk, with the command java-version, will have the following information:Java Version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-bit Server VM (build 1.6.0-b09, Mixed mode)It is best to uninstall the OPENJDK before installing Sun's JDK.See Rpm-qa First | grep javaThe
First step: Check if the Linux-brought JDK is installed (uninstall CentOS installed 1.4)The installed CentOS will bring openjdk, with the command java-version, will have the following information:Java Version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-bit Server VM (build 1.6.0-b09, Mixed mode)It is best to uninstall the OPENJDK before installing Sun's JDK.See Rpm-qa First | grep javaThe
Step 1: Check whether the built-in JDK of Linux has installed and installed CentOS with OpenJdk. run java-version to view the following information: javaversion quot; 1.6.0 quot; openJDKRuntimeEnvironment (build1.6.0-b09) OpenJDK64-BitServerVM (build1.
Step 1: Check whether the built-in JDK of Linux is installed
The installed CentOS comes with OpenJdk and uses the java-version command. the following information is displayed:
Java version "1.6.0"Open
First step: Check if the Linux-brought JDK is installed (uninstall CentOS installed 1.4)The installed CentOS will bring openjdk, with the command java-version, will have the following information:Java Version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-bit Server VM (build 1.6.0-b09, Mixed mode)It is best to uninstall the OPENJDK before installing Sun's JDK.See Rpm-qa First | grep javaThe
Step 1: Check whether the built-in JDK in Linux is installed (uninstall the JDK installed in centos)
The installed centos comes with openjdk and uses the Java-version command. The following information is displayed:
Java versionOpenjdk Runtime Environment (build 1.6.0-b09)Openjdk 64-bit server VM (build 1.6.0-b09, mixed mode)
It is best to uninstall openjdk first and install the JDK of sun.
Check rp
Export Java_home=/opt/java/jdk1.8.0_172export classpath=.: $JAVA _home/jre/lib/rt.jar: $JAVA _home/lib/dt.jar: $JAVA _ Home/lib/tools.jarexport path= $PATH: $JAVA _home/bin Delete OpenJDKThe installed CentOS will bring openjdk, with the command java-version, will have the following information:" 1.6.0 " 1.6. 0-1.6. 0-b09, mixed mode)It is best to uninstall the OPENJDK before installing Sun's JDK.View FirstRpm-qa | grep javaThe following information
View the current system Jdk:rpm-qa | grep jdk
The results obtained:
The code is as follows
Copy Code
[Root@dc-01 java]# Rpm-qa | grep JDKjava-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.i686
Uninstall OPENJDK:
The code is as follows
Copy Code
[Root@wx32 local]# Java-versionJava Version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-bit Server VM (build 1.6.0-
Node Control
Apr-1.2.7-11.el5_3.1.x86_64.rpmPostgresql-libs-8.1.18-2.el5_4.1.x86_64.rpmApr-util-1.2.7-11.el5.x86_64.rpmHttpdEuca-axis2c-1.6.0-1.x86_64.rpmEuca-rampartc-1.3.0-1.x86_64.rpmPerl-Crypt-OpenSSL-Random-0.04-1.el5.rf.x86_64.rpmPerl-Crypt-OpenSSL-RSA-0.25-1.el5.rf.x86_64.rpmEucalyptus-2.0.2-1.x86_64.rpmEucalyptus-gl-2.0.2-1.x86_64.rpmEucalyptus-nc-2.0.2-1.x86_64.rpm
Group Control
Apr-1.2.7-11.el5_3.1.x86_64.rpmPostgresql-libs-8.1.18-2.el5_4.1.x86_64.rpmApr-util-1.2.7-11.el5.x86_64.rpmHtt
Install JAVA on CentOS7
Step 1: Check whether the built-in JDK of Linux is installed
The installed CentOS comes with OpenJdk and uses the java-version command. The following information is displayed:
Java version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)
It is best to uninstall openjdk first and install the jdk of sun.
Check rpm-qa | grep java
Install JAVA in CentOS 7
Step 1: Check whether the built-in JDK of Linux is installed
The installed CentOS comes with OpenJdk and uses the java-version command. The following information is displayed:
Java version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)
It is best to uninstall openjdk first and install the jdk of sun.
Check rpm-qa | grep jav
How to Use yum to install and uninstall jdk and use yum to uninstall jdk
The installed CentOS comes with OpenJdk and uses the java-version command. The following information is displayed:
Java version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)
It is best to uninstall openjdk first and install the jdk of sun.
Check rpm-qa | grep java first
The f
2011-10-21 13:59:38Tags: CentOS casual workplaceFirst step: Check if the Linux-brought JDK is installed (uninstall CentOS installed 1.4)The installed CentOS will bring openjdk, with the command java-version, will have the following information:Java Version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-bit Server VM (build 1.6.0-b09, Mixed mode)It is best to uninstall the OPENJDK before inst
First step: Check if the Linux-brought JDK is installed (uninstall CentOS installed 1.4)The installed CentOS will bring openjdk, with the command java-version, will have the following information:Java Version "1.6.0"OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-bit Server VM (build 1.6.0-b09, Mixed mode)It is best to uninstall the OPENJDK before installing Sun's JDK.See Rpm-qa First | grep javaThe
First step: Uninstall the JDK from the old Linux① viewing native JDK versionsJava code
Java-version
The results are as followsJava code
Java version "1.6.0"
OpenJDK Runtime Environment (build 1.6. 0-B09)
OpenJDK 64-bit Server VM (build 1.6. 0-B09, Mixed mode)
② Uninstall the OpenJDK that comes with the machine and install Sun's JDK.Java code
Rpm-qa | grep ja
Check whether JDK is installed in Linux.The installed CentOS comes with OpenJdk and uses the java-version command. The following information is displayed:Java version "1.6.0 Prime;OpenJDK Runtime Environment (build 1.6.0-b09)OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)It is best to uninstall openjdk first and install the jdk of sun.Check rpm-qa | grep java firstThe following information is d
Step One: View and uninstall the OPENJDK from CentOS
# installed CentOS will bring openjdk, with command Java-version, will have the following information:
[root@localhost ~]# java-version
java Version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-bit Server VM (build 1.6.0-b09, Mixed mode)
# It's best to uninstall Ope first NJDK, installing the Sun's JDK. First Check Rpm-qa | grep Java
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.