Command line run:sudo rm-rf/library/java/javavirtualmachines/jdk1.8.0_40.jdkWhere JDK1.8.0_40.JDK is my JDK version;To view the JDK version available:ls/library/java/javavirtualmachines/Something:In fact, we usually have a new version of the JDK update, download the latest updates, and then will be in the folder above
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 t
First, view the installation path of the JDK:
Whereis JavaWhich Java (Java execution path)Echo $JAVA _home
Echo $PATH
Note: If you are in Windows, you can use:
Set Java_home: View JDK Installation pathJava-version: View JDK version
Second, uninstall the old version of the JDK
First, check the installation path of the JDK:Whereis JavaWhich Java (Java execution path)Echo $JAVA _homeEcho $PATHNote: If you are in Windows, you can use:Set Java_home: View JDK Installation pathJava-version: View JDK versionSecond, uninstall the old version of the JDK:1. Determine the version of the JDK:Rpm-qa | gr
OPENJDK implementation of the Java platform as a GPL license (gpl-licensed)The Java interpreter for GCCCompiler: GCJ;Interpreter: gij;First, check the installation path of the JDK:Whereis JavaWhich Java (Java execution path)Echo $JAVA _homeEcho $PATHNote: If you are in Windows, you can use:Set Java_home: View JDK Installation pathJava-version: View JDK versionSecond, un
First, check the installation path of the JDK:Whereis JavaWhich Java (Java execution path)Echo $JAVA _homeEcho $PATHNote: If you are in Windows, you can use:Set Java_home: View JDK Installation pathJava-version: View JDK versionSecond, uninstall the old version of the JDK:1. Determine the version of the JDK:Rpm-qa | gr
How does the MAC command line terminal uninstall software? Mac OS system uninstall software way there are a variety of, uninstall tools, program icons dragged to the trash can, but what to do with stubborn residue of software? below to share
= 'id-ru'
Fi
# Path manipulation
If ["$ EUID" = "0"]; then
Pathmunge/sbin
Pathmunge/usr/sbin
Pathmunge/usr/local/sbin
Fi
# No core files by default
Ulimit-S-c 0>/dev/null 2> 1
If [-x/usr/bin/id]; then
USER = "'id-un '"
LOGNAME = $ USER
MAIL = "/var/spool/mail/$ USER"
Fi
HOSTNAME = '/bin/hostname'
History size = 1000
If [-z "$ INPUTRC"-! -F "$ HOME/. inputrc"]; then
INPUTRC =/etc/inputrc
Fi
Export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
# Java path
Export JAVA_HOME =/usr/java/jd
Centos5.2 has its own JDK, but it is still in version 1.4. It is so old that Tomcat 6 is not running. Obviously, we cannot meet our requirements. Let's take a look, as shown below:
[root@localhost soft]# java -versionjava version “1.4.2″gij (GNU libgcj) version 4.1.2 20071124 (Red Hat 4.1.2-42)Note: According to my installation in 5.2, it seems that the built-in 1.4 is not uninstalled, and the installation of JDK
Tags: SOLR system folder path serve Inux AC directly includedFirst, view the JDK installation directorywhereis javajava:/usr/bin/java/usr/local/javawhich Java/usr/bin/javaEcho $JAVA _home Echo $PATH/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:java_home/bin:/usr/local/java/ Jdk1.7.0_80/bin:/usr/local/erlang/bin:/root/binNote: If you are in Windows, you can use:set Java_home: View JDK Installa
While the official version of Java 8 has been released for more than two years, the current flagship version of Java Enterprise Applications is Java 6 and Java 7, and even worse, some of the company's early projects have to be run under Java 5, and I want to experience the new features of Java 8 in addition to working. So I need to install JDK 1.5,JDK 1.6, JDK 1.
Tags: log usr dep java x86 blog--nodeps EPS version1. View the current Java version of the system:[Email protected]/]$ java-version2. View current Java compiler and uninstall:[Email protected]/]$ Rpm-qa|grep GCJ[Email protected]/]$ rpm-e--nodeps java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_643. Check the RPM installed JDK version and uninstall:[Email protected]/]$ Rpm-qa|
See the original JDK firstRpm-qa|grep JDKOne by one uninstallation via RPM-E--nodeps based on the JDK name found aboveThen install the JDKRPM-IVH xxxxxxjdk.rpm for installationConfiguring Environment variables:/etc/profilejava_home=/usr/java/jdk1.7.0_67Jre_home=/usr/java/jdk1.7.0_67/jrePath= $PATH: $JAVA _home/bin: $JRE _home/binClasspath=.: $JAVA _home/lib/jt.jar: $JAVA _home/lib/tools.jar: $JRE _home/libE
How to install JDK on Mac and JDK on Mac
1. Visit the Oracle official website http://www.oracle.com, browse to the home page at the bottom of the menu, and then follow the prompts to operate:
2. Click the jdk download button:
3. Select "Accept Lisence Agreemen
Install Multiple JDK versions at the same time on Mac, and multiple jdk versions on mac
After JDK 8 GA, We were eager to try out new features such as Java 8 Lambda. However, the main version of Java enterprise-level applications is JDK
How to uninstall your own JDK and install the desired JDK under Linuxafter installing the Linux system, the system has its own JDK version, because some of the software in the system needs to use this environment. But when we install Eclipse and Tomcat, it's not possible to use this
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 install
Uninstall jdk in linux. a simple problem occurs all afternoon due to the re-modification of jdkversion1.5 -- 1.6. comrpm-qa | grepjdk -- gt; jdk-1.6.0_22-fcsrpm-qa | grepjava -- gt; sun-javadb-core-10.5.3-0.2 -- gt; sun-
Uninstall jdk in linux. a simple problem occurred a
environment to OK to see if JDK works normally. Let's write a test file test. java.
[Root @ linuxserver RPM] # VI test. Java
Class test {
Public static void main (string [] ARGs)
{
System. Out. println ("Hello world! ");
}
}
Save and exit. Compile and execute the following command:
[Root @ linuxserver text] # javac test. Java
[Root @ linuxserver text] # Java Test
Hello world!
To allow a user to run Java commands, modify the bash initialization fil
Built-in JDK for Linux uninstall
10:52:13 | category: Default category | label: Linux Server uninstall JDK | font size subscription
[Root @ localhost soft] # Java-versionJava version "1.4.2 ″Gij (GNU libgcj) version 4.1.2 20071124 (Red Hat 4.1.2-42)Note: According to my installation in 5.2, it seems that the built-in 1
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.