Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu 14.04 installation and configuration environment variable JDK1.8.0_25     - ORA-12545: Connection failed because the target host or object does not exist (Database)

- Batch download files using the explorer under Windows Server 2008 R2 (Server)

- Linux environment variables inside (Linux)

- Nginx introduced Dynamic Module Architecture (Server)

- To remove those IP is prohibited Fail2ban on CentOS 6/7 (Server)

- Linux command Detailed chpasswd bulk edit user password (Linux)

- MyCAT easy entry (Database)

- Mysql binlog resolve the garbage problem decryption (Database)

- Upgrade to Linux Mint 16 petra Mint 17 Qiana (Linux)

- Oracle create a temporary table space group (Database)

- SA weak password security system of the security risks posed (Linux)

- After installing Ubuntu 15.04, to do a few things (Linux)

- Sysdig: system troubleshooting tool (Linux)

- Git commands (Linux)

- Elaborate .NET Multithreading: Thread Pool (Programming)

- How to test your MongoDB application upgrade? (Database)

- CentOS 6.2 install git error Perl5 (Linux)

- Deploy OpenStack Juno on Ubuntu 14.04 (Linux)

- How to add two-factor authentication for Linux systems SSH (Linux)

- Git build a team development environment operating drills (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:      
 
- Installation and deployment of MariaDB under CentOS (Database)
- Security Knowledge: How to hide a backdoor PHP file tips (Linux)
- Detailed Linux platform chip programming process (Programming)
- Python in os.path Magical (Programming)
- C # function (Programming)
- Linux Disk and File Management (Linux)
- Linux Mint 17.2 64 bit installation Docker and management software seagull (Linux)
- 10 Codes of good practice PHP (Programming)
- 5 steps to help you become a good Docker contributors (Linux)
- Use Visual Studio Code Development TypeScript (Linux)
- Linux operating system security management skills notes (Linux)
- Generate two-dimensional code parsing code Java (Programming)
- Ubuntu Tutorial - Manually install Oracle Java JDK 8 (Linux)
- Bitmap memory footprint of computing Android memory optimization (Linux)
- Ubuntu security settings and tools (Linux)
- Oracle 11g RAC automatically play GI PSU patch (11.2.0.4.8) (Database)
- Ubuntu 14.04 / 14.10 how to install FFmpeg 2.5.1 (Linux)
- to install the deployment of LVS under CentOS 7.0 (Server)
- PL / SQL -> UTL_FILE use presentation package (Database)
- How do you change the default browser and Email Client in Ubuntu (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.