Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu 14.04 configure JDK1.8.0_25, switchable version     - Spring + MyBatis Multi data source switching (Database)

- Enterprise Hadoop cluster architecture - DNS installation (Server)

- Use ISO document production OpenStack used CoreOS mirror (Linux)

- Python pickle module for simple use notes (Programming)

- Shell generated using automated configuration script Orabbix (Database)

- How to use the process on the desktop xkill end Linux (Linux)

- Cooling solutions Ubuntu system (Linux)

- Ubuntu U disk do not have write privileges can only read but not write (Linux)

- Zabbix monitoring disk IO status (Server)

- Ubuntu Apache virtual host configuration (Server)

- Digital jQuery scrolling effect (Programming)

- Android studio multi-channel ultra-compact version of the package (Programming)

- Linux dynamic libraries and Guide (Programming)

- How to modify the SQL Server auto-increment value and the corresponding solution (Database)

- Minimum period string problem (Programming)

- shell script: the number of characters in the text to print no more than 6 words (Programming)

- Debian GNU / Linux service list acquisition, shutting down services or run (Linux)

- Install snort intrusion detection system on Debian (Linux)

- Linux installed xdotool simulate keystrokes and mouse movements (Linux)

- Redis performance test (Database)

 
         
  Ubuntu 14.04 configure JDK1.8.0_25, switchable version
     
  Add Date : 2017-01-08      
         
         
         
  Ubuntu 14.04 configure JDK1.8.0_25, switchable version, jdk Download.

Decompression:

sudo mkdir / usr / lib / jvm

sudo tar zxvf / home / username /Downloads/jdk-8u25-linux-i586.tar.gz -C / usr / lib / jvm

Modify environment variables: // tested here may not be configured by the following command after the configuration can not be switched version.

Test Method: Hadoop-2.6.0 compiled with jdk1.8.25 be wrong, but does not use openjdk, by setting different versions, indeed 1.8.25 When an error occurs when setting, so no configuration here.

sudo gedit / etc / profile

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

Save and exit, enter the following command to make it effective immediately.

Configure the default JDK:

sudo update-alternatives --install / usr / bin / java java /usr/lib/jvm/jdk1.8.0_25/bin/java 300
sudo update-alternatives --install / usr / bin / javac javac /usr/lib/jvm/jdk1.8.0_25/bin/javac 300
// You can not configure two behind
sudo update-alternatives --install / usr / bin / javah javah /usr/lib/jvm/jdk1.8.0_25/bin/javah 300
sudo update-alternatives --install / usr / bin / jar jar /usr/lib/jvm/jdk1.8.0_25/bin/jar 300
// Version handover command

sudo update-alternatives --config java
sudo update-alternatives --config javac

test

java -version
javac -version
     
         
         
         
  More:      
 
- How to build Memcached Docker container (Server)
- Linux kernel log --dmesg (Linux)
- Log device files under Linux - logger (Linux)
- Ubuntu resolve sudo: source: command not found error (Linux)
- Hadoop + Zookeeper NameNode achieve high availability (Server)
- How to understand Python yield keyword (Programming)
- State and Linux nf_conntrack TCP disconnect time (Programming)
- Hadoop 2.7.1 Installation and Configuration under RedHat Linux 6.5 (Server)
- Package the Python script file into an executable file (Programming)
- iOS Sensor Development - add to APP phone password, fingerprint security authentication (Programming)
- JavaScript object - Flexible and dangerous (Programming)
- bash login and welcome message: / etc / issue, / etc / motd (Linux)
- How to use Monit to deploy a server to monitor the system (Server)
- MySQL enabled SSD storage (Database)
- CentOS7 installed MySQL (Database)
- The Samba service does not have permission to access (Server)
- Using Maven to download Spring (Linux)
- Binary tree and some basic operations with binary list (Programming)
- Binary Tree Traversal (Linux)
- systemd-nspawn Quick Guide (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.