Linux JDK security loading and unloading

Source: Internet
Author: User

Uninstalling the JDK

[[email protected] ~]# rpm-qa|grep JDK//query installed JDK
Java-1.7.0-openjdk-1.7.0.79-2.5.5.3.el6_6.x86_64
[[email protected] ~]# #rpm-E--nodeps ava-1.7.0-openjdk-1.7.0.79-2.5.5.3.el6_6.x86_64//Uninstall installed JDK

[[email protected] soft]# chmod u+x jdk-6u45-linux-x64.bin//Execute permissions for JDK installation files

[[email protected] soft]#./jdk-6u45-linux-x64.bin//install JDK

[[email protected] jdk1.6.0_45]# vi/etc/profile//configure JDK environment variables

Export java_home=/opt/soft/jdk1.6.0_45
Export Classpath= $JAVA _home/lib
Export path= $JAVA _home/bin: $PATH

[[email protected] jdk1.6.0_45]# source/etc/profile//Make configuration file effective immediately

[[email protected] jdk1.6.0_45]# java-version//test Successful
Java Version "1.6.0_45"
Java (TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot (TM) 64-bit Server VM (build 20.45-b01, Mixed mode)

 

Linux JDK security loading and unloading

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.