Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu 14.04 installation and configuration environment variable JDK1.8.0_25     - installation of Vim plugin YouCompleteMe under Ubuntu 15.04 (Linux)

- Linux redirection and piping (Linux)

- Linux file system data file deletion problem space is not freed (Database)

- MySQL separation Amoeba achieve literacy (Database)

- How to prevent page five invisible killer (Linux)

- Java thread lifecycle (Programming)

- How to Disable Linux IPv6 (Linux)

- Tomcat itself through simple movement separation (Server)

- Customize own small private Linux system (Linux)

- Linux operating system, the internal and external security overview (Linux)

- VMware11 virtual machine Ubuntu14.10 system partition sda1 disk expansion (Linux)

- Ubuntu users to install Gnome-Pie 0.6.5 (Linux)

- CentOS 6.5 installation and configuration Cobbler (Server)

- How to Install 3.16.7 CKT2 kernel in Ubuntu 14.10, Ubuntu 14.04 and its derivative versions (Linux)

- Redis is installed in Ubuntu 14.04 (Database)

- struts2 completely the wrong way to capture 404 (Programming)

- Ubuntu treated with cue file to ape and wav files automatically track points (Linux)

- Ubuntu system safe and caution sudo su command (Linux)

- How to use the Docker Machine cluster deployment Swarm (Server)

- Linux system security reinforcement system by masquerading method (Linux)

 
         
  Ubuntu 14.04 installation and configuration environment variable JDK1.8.0_25
     
  Add Date : 2017-08-31      
         
         
         
  The following are the Ubuntu 14.04 installation and configuration environment variable JDK1.8.0_25 procedure notes.

1. Source Package preparation:

First, the official website to download jdk, http: //www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html, I downloaded jdk-8u25-linux-x64.tar.gz, download it to your home directory

2, extract the source package

Through the new terminal at / usr / local directory java folder, the command line:

2, extract the source package
Through the new terminal at / usr / local directory java folder, the command line:

sudo mkdir / usr / local / java

And then downloaded to the archive folder are copied to the java command line:
Jdk source package into the directory

cp jdk-8u25-linux-x64.tar.gz / usr / local / java

Then enter java directory, the command line:

cd / usr / local / java

Extracting archive, the command line:

sudo tar xvf jdk-8u25-linux-x64.tar.gz

You can then delete the archive, the command line:

sudo rm jdk-8u25-linux-x64.tar.gz

3, set the environment variable jdk

Here the use of global settings method, which is common to all users of the environment variable

$ Sudo gedit ~ / .bashrc

After opening at the end add

export JAVA_HOME = / usr / local / java / jdk1.8.0_25
export JRE_HOME = $ {JAVA_HOME} / jre
export CLASSPATH =:. $ {JAVA_HOME} / lib: $ {JRE_HOME} / lib
export PATH = $ {JAVA_HOME} / bin: $ PATH

Remember to add the above procedure, do not include spaces on both sides of the equal sign, otherwise there will be "is not a valid identifier", because they can not recognize the extra time source / etc / profile to space, it will be understood to be part of the path.
Then save.

4. Verify that the installation was successful
Enter the following command in the terminal
java -version
To see if the installation was successful
Success is shown below
     
         
         
         
  More:      
 
- Use mysqldump MySQL database backup - Linux Shell Scripting (Database)
- Linux command execution order control and pipeline (Linux)
- Ubuntu 14.04 build Hadoop 2.5.1 standalone and pseudo-distributed environment (32-bit) (Server)
- CentOS install expect (Linux)
- Linux system man help tips (Linux)
- Memcached installation, configuration and monitoring (Server)
- PyCharm new Python file name and the name of the module will import the same problem might arise (Programming)
- Linux, MySQL root privilege escalation another method (Linux)
- Cryptography development environment to build under Ubuntu (Linux)
- Oracle table space create large files (Database)
- Teach you how to choose to install CentOS 6.5 installation package (Linux)
- Try debugfs restore the deleted files ext3 file system (Linux)
- in no backup ex: error: Xin Tourou ah backup child process has Singles DAT / US person / bin / in no backup ex (Database)
- JavaScript event handling Detailed (Programming)
- ogg Oracle to SQL Server 2005 to achieve synchronization (Database)
- 20 open source / commercial Linux server management control panel (Server)
- Eclipse-4.4 crash problem solving under Debian-7.6 (Linux)
- Delegate in C # (Programming)
- JavaScript function closures Quick Start (Programming)
- MySQL master recovery from failure using binlog (Database)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.