Linu Study Notes-install and uninstall JDK on ubuntu
Abstract: This document mainly records how to manually install and install JDK in ubuntu12.0.4 and manually delete JDK using shell scripts. It also involves some small commands. Scp and tar.
I. Manual Installation
1.1 obtain the corresponding installation package
I
Linu Study Notes mdash; install and uninstall JDK 17 in ubuntu abstract: describes how to install and uninstall JDK in ubuntu.
Abstract: This document mainly records how to manually install and install JDK in ubuntu12.0.4 and manually delete
One. Back up the installed green version of the JDKA. Reinstall the JDK into any directory, assuming this directory is C:\java.B. Copy the loaded jdk,jre to any other directory, such as D:\bak, which is intended primarily to back up the JDK. (Recommended to zip compressed package Ben Spare) Two. Completely uninstall
First, check the installation path of the JDK:Whereis JavaWhich Java (Java execution path)Echo $JAVA _homeEcho $PATHSecond, uninstall the old version of the JDK:1. Determine the version of the JDK:Rpm-qa | grep JDKRpm-qa | grep GCJThe possible results are:Libgcj-4.1.2-42.el5java-1.4.2-gcj-compat-1.4.2.0-40jpp.1152. then uninstall :Yum-y Remove java-1.4.2-gcj-comp
How does Mac software install and uninstall? Mac software and Windows system EXE file is not the same, so can not share the use of the next small series will be detailed introduction to the Mac software installation and uninstall tutorials, I hope to help.
Install with So
Uninstall 1, uninstall the installed JDK method with bin file: Delete Everything under the/usr/java directory 2, uninstall the system's own JDK version method: View the JDK: #rpm-qa | grep GCJ See the following information: Libgcj
After installing the Java JDK, there will be two programs, if you do not carefully uninstall, you can uninstall one less and not completely uninstall, see below Win7 How to uninstall the JDK.Win7 How to uninstall the
configuration is successfully installed.
Www.linuxidc.com @ Ubuntu :~ $ Java-version
Java version "1.6.0 _ 31"
Java (TM) SE Runtime Environment (build 1.6.0 _ 31-b04)Java HotSpot (TM) Client VM (build ipv6-b01, mixed mode, sharing)
Www.linuxidc.com @ ubuntu :~ $
How to uninstall JDK:
In Terminal, enter the JDK directory and run the rm command to delete the
Many people often have a lot of trouble when deleting the JDK-even if they delete all Java-related files on the computer (but you usually cannot delete some files, the control panel still displays the Java icon, at this time, whether you uninstall JDK or you want to install the new version of JDK, there will be a serio
These days I searched and posted on the Internet to find out how to solve the problem of not valid JDK isntalled, but there was no result. This uses ant for release, and the JDK version cannot exceed 1.7. I installed the latest jdk1.8 on the Mac, so this error is always reported during the release. How to solve this problem: 1. Download a
There are a lot of articles on installing JDK on the Internet, but I still feel that my own is true. So I made the following simple record for the configuration steps, just to facilitate the query when needed
1. install Java JDK
1. Download the JDK you will install, which is
2. Unzip the downloaded JDK file to the path
1) Uninstall the JDK version that comes with the system:To view your own JDK:#rpm-qa|grep GCJYou may see a message similar to the following:Libgcj-4.1.2-44.el5java-1.4.2-gcj-compat-1.4.2.0-40jpp.115Use the RPM-E--nodeps command to delete what you found above:#rpm-e–nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.1152) Uninstall
First contact with Mac Apple Computer users may not know how to uninstall the installed application software, before PC6 Small series has to introduce how Mac installation software, today to teach you how to uninstall software, in fact, very simple, let me see:
1. First we open the Finder, which is the first button on
path=Execute the following command to make the configuration effectiveSource/etc/profileNote: path= "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" must be retained, Doing so will cause the system not to log in. You can also use another two configurations instead of the line configuration:5. How to unload your own OPENJDK:
sudo apt-get remove openjdk*
6. Set the default JDK (if you have OpenJDK
Uninstall default: Log in to the system with the root user, open a terminal input # Rpm-qa|grep GCJ display content contains the following two lines of information # JAVA-1.4.2-GCJ-COMPAT-1.4.2.0-27JPP # JAVA-1.4.2-GCJ-COMPAT-DEVEL-L.4.2.0-27JPP Uninstall # rpm-e JAVA-1.4.2-GCJ-COMPAT-DEVEL-L.4.2.0-27JPP # RPM-E Java-1.4.2-gcj-compat-l.4.2.0-27jppUninstall other JDK
1. log on to centos with the root account
2. view the JDK INSTALLED IN THE SYSTEM
[Root @ localhost ~] # Rpm-Qa | grep JDK Jdk-1.6.0_38-fcs3, uninstall JDK [root @ localhost ~] # Rpm-e -- nodeps jdk-1.6.0_22-fcs
Parameter Sel
Install with Software installation package
1. Download the version for Mac. After downloading the software to the Mac, double-click to run, and you will see a new hard disk icon on the desktop. (EXE under Windows is not available on Mac)
2. At the same time will pop up a new installation window, if the window does not appear, we will go to double-click the ha
Uninstall the built-in jdk of centos and install the new
In general, we need to uninstall the OPENJDK that comes with linux, and then install the sun jdk.First, check whether the built-in JDK of Linux is installed.The following information is generally obtained:Java version "1.6.0"OpenJDKRuntime Environment (build 1.6.
Uninstall jdk under centos
Uninstall jdk
1. Log On with the root account as follows:
2. view the jdk INSTALLED IN THE SYSTEM
# Rpm-qa | grep jdk
# Rpm-qa | grep java
Sun-javadb-core-10.5.3-0.2
Sun-javadb-demo-10.5.3-0.2
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.