Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu 14.04 installation and configuration environment variable JDK1.8.0_25     - Docker deployment practices in Ubuntu (Server)

- DataGuard Standby backup error RMAN-06820 ORA-17629 to solve (Database)

- Android Studio utility plug organize, create sharp artifact (Programming)

- BGP routers want to play it by CentOS (Linux)

- MySQL use the integer type (Database)

- MySQL query optimization: profile function (Database)

- Linux Command Line Art (Linux)

- Attic-- delete duplicate data backup program (Linux)

- Oracle 11g maintenance partitions (eight) - Renaming Partitions (Database)

- Struts2 interceptor simulation (Programming)

- Enterprise Encrypting File System eCryptfs Comments (Linux)

- Arronax allows you to easily create desktop startup file (Linux)

- Ubuntu 12.04 64bit Install Source Insight 3.5 and create desktop icons (Linux)

- How to manage the time and date at systemd Linux systems (Linux)

- The most simple drive to write and test procedures under linux (Programming)

- Go build the locale under Windows (Linux)

- C language programming entry - Common operators (Programming)

- Linux 64-bit porting (Programming)

- Terminal fun: 6 interesting Linux command-line tools (Linux)

- A process of how to get the current traffic in GNU Linux (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:      
 
- CentOS 7.0 Close firewall is enabled by default iptables firewall (Linux)
- Ubuntu system cp: omitting directory problem (Linux)
- Linux network security strategy (Linux)
- How to use the TF / SD card making Exynos 4412 u-boot boot disk in Mac (Linux)
- Git Installation and Configuration (Network Agent settings) (Linux)
- CentOS installation pycurl (Linux)
- Linux system security configuration (Linux)
- How SSHfs mount a remote file system on Linux (Linux)
- Grading defense against Linux server attacks (Linux)
- CentOS installation of the ftp (Linux)
- How to use the DM-Crypt encryption Linux File System (Linux)
- SendMail version of Java implementation with attachments (Programming)
- Linux NFS service fixed ports and firewall configuration (Linux)
- Android Service Lifecycle and usage (Programming)
- ARP Linux-related operations (Linux)
- Node.js developers must know four JavaScript concepts (Programming)
- GlusterFS distributed storage deployment (Server)
- BusyBox making the file system (Linux)
- Seven kinds of NIC binding mode Detail (Linux)
- Objective-C basic program structure (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.