Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS7 install JDK     - PL / SQL in forall simple test (Database)

- Java Prototype Pattern (Programming)

- To create a Linux server network security (Linux)

- MySQL optimization of the relevant Group By (Database)

- C ++ containers (Programming)

- Shell array: Define Shell array, the array length (Programming)

- Ubuntu 14.04 VirtualBox can not start solution (Linux)

- Stunning exclamation point at the Linux command line (Linux)

- Linux directory configuration (Linux)

- Ubuntu 15.10 15.04 14.10 14.04 Install Ubuntu Tweak (Linux)

- Java string equal size comparison (Programming)

- iOS developers - a simple factory pattern and OC reflection (Programming)

- Tab set to four spaces in Vim (Linux)

- Gitolite how to import other Git repositories (Server)

- 14 useful example Linux Sort command (Linux)

- Getting case of Python Hello World (Programming)

- To setup Cocos2dx project under Ubuntu (Linux)

- 24 Docker recommendations (Linux)

- Check with Hello World Docker installation (Server)

- How to use the DM-Crypt encryption Linux File System (Linux)

 
         
  CentOS7 install JDK
     
  Add Date : 2016-10-09      
         
       
         
  One, CentOS 7 unloading system comes openjdk

1, built-in query system jdk, use the following command:

rpm -qa | grep java
At this point the system will list the presence of jdk, if there is to be unloaded, there is no direct installation.

2, uninstall, use the following command:

rpm -e --nodeps jdk related names
After uninstalling can be installed jdk, related queries and unloading operations

Two, jdk installation

1, jdk download and upload to / usr / java directory

jdk7 download address: http: //www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html select the corresponding version of linux, download rpm files. Here is a selection jdk-7u79-linux-x64.rpm. And upload it to the Linux / urs / java directory (java directory does not exist it will be created).

2, extract the installation

Run the following command to decompress

rpm -ivh rpm file name

3, the configuration profile file

Run the following command

vi / etc / profile
Add the following to the end and keep the profile file

export JAVA_HOME = / usr / java / jdk1.7.0_79
export CLASSPATH =:. $ JAVA_HOME / jre / lib / rt.jar: $ JAVA_HOME / lib / dt.jar: $ JAVA_HOME / lib / tools.jar
export PATH = $ PATH: $ JAVA_HOME / bin
/usr/java/jdk1.7.0_79 refers to the path of jdk

After saving, run the following commands to validate the configuration

source / etc / profile
Check jdk is installed successfully, run the following command

java -version
     
         
       
         
  More:      
 
- How to install Laravel PHP framework on CentOS 7 / Ubuntu 15.04 (Server)
- Use Linux firewall camouflage defense hacked (Linux)
- Talk about the Linux folder permissions issue again (Linux)
- PHP file upload methods exist in the database (Programming)
- Use of the storage-level replication technology will quickly clone a ASM database to the target environment (Database)
- Oracle 11g How dataguard master repository to Oracle single instance data recovery (Database)
- Using monitoring tool dsniff (Linux)
- Copy Recovery using RMAN repository development environment (Database)
- Modify Linux terminal prompt path length (Linux)
- Linux directory structure (Linux)
- How to network to share files between Windows, MAC and Linux (Linux)
- Seven kinds of NIC binding mode Detail (Linux)
- After installation of Debian 6.0 do a few things first (Linux)
- Python exception summary (Programming)
- Java implementation linear table - represents the order of representation and chain (Programming)
- CentOS6.5 install SVN & visual management tools iF.SVNAdmin (Server)
- Ubuntu under shadowsocks configuration instructions (Linux)
- Oracle DATABASE LINK (DBLINK) Create (Database)
- PyCharm new Python file name and the name of the module will import the same problem might arise (Programming)
- Java reflection Introduction (Programming)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.