Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS 6.6 install JDK7     - xCAT Installation Kit (Linux)

- Linux package management operations Basic entry (Linux)

- Python 3.5 await / async (Programming)

- How to install Nginx on FreeBSD 10.2 as an Apache reverse proxy (Server)

- 127.0.0.1 and localhost difference (Server)

- Grading defense against Linux server attacks (Linux)

- Ubuntu 14.10 Apache installation and configuration (Server)

- Linux installation JDK1.6 rpm.bin assembly (Linux)

- Ubuntu 14.04 LTS 64-bit installation and activation Sublime Text 3 can not solve the Chinese input method to solve the problem (Linux)

- Linux system firewall defense network attacks (Linux)

- Linux, security encryption to transfer files between machines (Linux)

- CentOS / Linux kernel upgrade (Linux)

- Security Features Linux and Unix operating system, programming (Linux)

- CentOS installation of the ftp (Linux)

- HBase vs Oracle (Database)

- Definition Format Oracle basis of various statements (Database)

- Echo Command Examples (Linux)

- Btrfs file system creation and their characteristics in Linux (Linux)

- Let 32 Linux / CentOS system to support more than 4G memory (Linux)

- Linux ldconfig command (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 !!!
     
         
       
         
  More:      
 
- Oracle DATABASE LINK (DBLINK) Create (Database)
- Grub2 Boots the openSUSE installation image (Linux)
- Qt shared memory interprocess communication (Programming)
- Zabbix Agent (Server)
- Linux and hardware (Linux)
- ORA-00911 invalid character error Solution (Database)
- PyCharm new Python file name and the name of the module will import the same problem might arise (Programming)
- Linux Thread Synchronization (Programming)
- To delete the directory and all specified files under the Mac (Linux)
- Linux basis: a comprehensive study pwd command (Linux)
- Oracle 11g RAC automatically play GI PSU patch (11.2.0.4.8) (Database)
- How to use the on-screen keyboard in Linux (Linux)
- How to install Zephyr Test Management Tools on CentOS 7.x (Server)
- Linux system boot process detail (Linux)
- How to find an IP address through the command line (Linux)
- File permissions under Linux (Linux)
- It is time to upgrade your gulp 4.0 (Programming)
- Use calcurse schedule appointments and to-do in the Linux terminal (Linux)
- Without Visual Studio .NET Windows application development (Programming)
- HttpClient Tutorial (Programming)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.