Uninstall jdk in linux. it's a simple problem for the whole afternoon.

Source: Internet
Author: User
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 all afternoon. due to the re-modification of jdk version 1.5 -- 1.6, it was blocked during the uninstallation, www.2cto.com rpm-qa | grep jdk --> jdk-1.6.0_22-fcsrpm-qa | grep java --> sun-javadb-core-10.5.3-0.2 --> sun-javadb-demo-10.5.3-0.2 --> sun-javadb-javadoc-10.5.3-0.2 --> sun-javadb-common-10.5.3-0.2 --> sun-javadb-docs-10.5.3-0.2 uninstall: rpm-e -- nodeps jdk-1.6.0_22-fcs --> error: package jdk-1.6.0_22-fcs is not installed last yum remove jdk-1.6.0_22-fcs Installation: chmod + x jdk _*. bin. /jdk _*. binrpm-ivh jdk _*. by default, rpm is installed at:/usr/java/jdk _ * windows: set java_home: View JDK installation path java-version: View JDK version linux: whereis javawhich java (java execution path) echo $ JAVA_HOMEecho $ PATH 2: The following is the linux environment variable: (remember source. bash_profile ). modify the/etc/profile File (global users) vi. add this file/etc/profile to the end of the profile file: export JAVA_HOME =/usr/share/jdk1.6.0 _ 20 export PATH = $ JAVA_HOME/bin: $ PATHexport CLASSPATH =.: $ JAVA_HOME/lib/dt. Jar: $ JAVA_HOME/lib/tools. jar. modify. bash_profile file (a user is authorized to use these environment variables ). add: export JAVA_HOME =/usr/share/jdk1.6.0 _ 20 export PATH = $ JAVA_HOME/bin: $ PATHexport CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar. run the following command on the shell Terminal: (for temporary use) export JAVA_HOME =/usr/share/jdk1.6.0 _ 14 export PATH = $ JAVA_HOME/bin: $ PATHexport CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar 3. uninstall jdk. find the jdk installation directory named _ unin. St subdirectory · run the command./uninstall. sh on the shell terminal to uninstall jdk.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.