Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS 6.6 install JDK7     - CoreOS use register mirror to build private warehouse (Linux)

- About AWR More Description (Database)

- Using IE can also be easily remotely control the computer (Linux)

- Ubuntu 14.04 CodeBlocks configuration manually compile Boost 1.57.0 (Linux)

- XenServer Virtual Machine Installation --- first ISO image file storage expansion (Linux)

- Java enum use (Programming)

- Installation Flow N Play- interface stylized video player on Ubuntu (Linux)

- The correct way of logical backup mysqldump (Database)

- Oracle row and column switch to turn columns (Database)

- Python dictionary applications get built-in method (Programming)

- Use mysqldump MySQL database backup - Linux Shell Scripting (Database)

- How to install CentOS 7.x in OpenERP (Odoo) (Linux)

- using Docker Kitematic on windows (Linux)

- Spring Data MongoDB combat (Database)

- ARM Linux system call (Linux)

- Ubuntu 14.04 Solution login interface infinite loop (Linux)

- dd command: do hard disk IO performance test (Linux)

- PLSQL Developer synchronization table tools (Database)

- Object Oriented Programming Java reflection (Programming)

- tespeed - test speed of Python tools (Linux)

  CentOS 6.6 install JDK7
  Add Date : 2016-06-10      
  Explanation: The installation process of recording JDK7 in CentOS 6.6.

1. official website to download jdk7
Download: http: //www.Oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

I downloaded version is jdk-7u76-linux-x64.rpm, available wget command to download:

# Wget -c http://download.oracle.com/otn-pub/java/jdk/7u76-b13/jdk-7u76-linux-x64.rpm?AuthParam=1423901832_534664d912e74413fbff4253bb05da97
After the download, you need to rename the file:

# Mv jdk-7u76-linux-x64.rpm \? AuthParam \ = 1423901832_534664d912e74413fbff4253bb05da97 jdk-7u76-linux-x64.rpm
2. rpm command to install
# Rpm -ivh jdk-7u76-linux-x64.rpm
3. Set the environment variables
# Cd / usr / java
# Ls
/ Usr / java / directory reads as follows:

# Ls
default jdk1.7.0_76 latest
Information obtained from the above jdk1.7.0_76, in the following configuration environment variable to use

# Vim / etc / profile
In the / etc / profile file additional content:

export JAVA_HOME = / usr / java / jdk1.7.0_76
export CLASSPATH =:. $ JAVA_HOME / jre / lib / rt.jar: $ JAVA_HOME / lib / dt.jar: $ JAVA_HOME / lib / tools.jar
export PATH = $ PATH: $ JAVA_HOME / bin
After an additional,: wq to save and exit, let's environment variables to take effect:

# Source / etc / profile
4. View java version
# Java -version
as follows:

java version "1.7.0_76"
Java (TM) SE Runtime Environment (build 1.7.0_76-b13)
Java HotSpot (TM) 64-Bit Server VM (build 24.76-b04, mixed mode)
5. detect normal available
# Java
# Javac
If the command usage is displayed, indicating a successful installation.

OK, Enjoy it !!!
- awk Programming Model (Programming)
- Android to determine whether the device to open WIFI, GPRS data connection (Programming)
- The sublime into IDE (Linux)
- MongoDB slice simple example (Database)
- Oracle archive log deletion (Database)
- OpenStack package problems and solutions under CentOS6 (Linux)
- Lenovo E431 notebook CentOS system is installed wireless network card driver (Linux)
- Using Maven to download Spring (Linux)
- CKEditor + SWFUpload achieve a more powerful editor (Linux)
- Let Markdown code syntax highlighting and support Django1.6 (Linux)
- Docker build their own private warehouses (Linux)
- C ++ handling text input (Programming)
- Ubuntu: HDF5 error: HDF5 header version does not match with the HDF5 library (Linux)
- How to install and use the Snort in Ubuntu 15.04 (Linux)
- Some security configuration of Linux systems (Linux)
- xCAT deployment (Linux)
- Linux compression and decompression command (Linux)
- High-performance JavaScript reflows and repaints (Programming)
- ORA-27054 NFS problem solving (Database)
- Use PXE with kickstart to install Linux automatically (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.