Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Ubuntu 14.04 installation and configuration environment variable JDK1.8.0_25     - Intel Graphics Installer installation on Ubuntu 15.10 (Linux)

- How to add and delete bookmarks in Ubuntu (Linux)

- To read the Linux ext3 / ext4 format partitions under Windows system software (Linux)

- Nginx reverse proxy and self-signed https (Server)

- iTerm - let your command line can also be colorful (Linux)

- Chrome plug-in management, online-offline installation, part of the plug presentations (Linux)

- PHP security Programming Advice (Programming)

- CentOS 5.5 kernel upgrade installation iftop (Linux)

- Three details reflect the Unix system security (Linux)

- There is sort of a directed acyclic graph topology (Programming)

- Use Bosh deploy CloudFoundry problems encountered on OpenStack (Server)

- ThinkPad X220 Ubuntu 14.10 installed on fingerprint recognition (Linux)

- PuTTY Xming achieve the X11 forwarding ssh (Server)

- Ubuntu: To install chat client Chatty 0.6.1 (Linux)

- ASM Management - How to Rename diskgroup (Database)

- Ubuntu apt-mirror established local private sources (Linux)

- Autojump: an advanced cd command in the Linux file system fast navigation (Linux)

- How to Upgrade Ubuntu GNOME 14.10 to GNOME 3.16 Desktop (Linux)

- Boost-- time and date - (1) timer library introduction (Programming)

- Ubuntu 14.04 / 14.10 how to install FFmpeg 2.5.1 (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
- Programmer editor Vim (Linux)
- Linux Shell debugging (Programming)
- Linux environment has been running Tomcat how to deploy the new Tomcat (Server)
- How to make GRub instead of the default Ubuntu software center (Linux)
- Configure the Linux kernel and use iptables to do port mapping (Linux)
- Make Linux more secure server tips (Linux)
- Kafka cluster deployment (Server)
- U disk to install Windows and Ubuntu 15.04 dual system (Programming)
- MongoDB study notes - polymerization (Database)
- Infinispan 8 new Redis cache storage implementation (Linux)
- PostgreSQL vacuum principle of a function and parameters (Database)
- MongoDB3.0.6 wiredtiger MMAPv1 (Database)
- Oracle in the add & split partition on the impact of global & local index (Database)
- Efficient Linux Shell - Shell special characters Summary (Linux)
- CentOS7 installation configuration Redis-3.0.0 (Database)
- MySQL time field based partitioning scheme summary (Database)
- Linux Disk and File Management (Linux)
- Depth understanding of the use of Spring Redis (Programming)
- How to configure a server in a MySQL Cluster (Database)
- The formatted Linux hard drive and mount (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.