Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Java development environment to build under Ubuntu     - Single-node Hadoop environment to build (Server)

- Use Bash script write CVS version control (Server)

- Eclipse 3.7.2 can not start solving under Ubuntu 14.04 (Linux)

- How to implement Linux host Telnet SSH password Free (Server)

- CentOS yum install LNMP PHP5.4 version (Server)

- Linux Mint 17.2 64 bit installation Docker and management software seagull (Linux)

- Advanced Search Oracle study notes (Database)

- LVM mirrored logical volume to achieve (Linux)

- Analysis of MySQL Dockerfile 5.6 (Database)

- Nmcli based network management command-line tool (Linux)

- numpy and SciPy installation under Python for scientific computing package (Linux)

- History and Statistics tuptime use tools to view Linux server system boot time (Server)

- mysqldump MySQL command-line tool (Database)

- Git 2.5 increase in the working tree, triangle improved workflow performance (Linux)

- Shell script on the variables with double quotation marks grep small problem (Programming)

- Java reflection summary (Programming)

- Ubuntu the ARP (arptables) (Linux)

- Share and show your code on GitHub (Linux)

- Oracle delete table space prompted ORA-00604 and ORA-38301 (Database)

- How to write a new Git protocol (Linux)

 
         
  Java development environment to build under Ubuntu
     
  Add Date : 2018-11-21      
         
         
         
  Operating System: Linux x64 / Ubuntu 14.04

Java JDK version: jdk-8u65-linux-x64.tar.gz

1. Go to Oracle's official website to download the latest version of the Java JDK: http: //www.oracle.com/technetwork/java/javase/downloads/index.html, the default download to the Downloads folder.

2. Create a folder to store the Java JDK under the right path, in this case, choose New JVM subfolder in the / opt directory. Follows

Open Terminal (later to become T1), enter:

cd / opt # enter to opt directory
sudo mkdir jvm # Create a folder jvm
ls # shows successful new jvm folder
cd jvm # into the jvm folder

3. download JDK archive copy to jvm directory. Follows

Another new Terminal window (T2) and enter:

cd Downloads # into the Downloads folder
ls # Display JDK file you just downloaded,
sudo cp jdk-8u65-linux-x64.tar.gz / opt / jvm # will copy the file to just the new jvm folder (where the file name to its own corresponding JDK version, after the same)
sudo rm jdk-8u65-linux-x64.tar.gz # delete the installation package catalog under (optional)

4. Unzip install Java JDK, configure the environment variables. Follows

Back to the first Terminal (T1), enter:

ls # Display copied the JDK installation package
sudo tar -zxvf jdk-8u65-linux-x64.tar.gz # unpack the installation package
ls # Display unpacked JDK folders, as well as the original installation package
sudo rm jdk-8u65-linux-x64.tar.gz # delete the original installation package
sudo gedit / etc / profile # Open profile file in the etc directory

5. Configure global environment variables. Follows

At the end of the document open profile Add JDK installation path (must be carefully confirmed):

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

6. Save and close the document. (Note: You can also etc by vim command Edit / profile, open a command: sudo vim / etc / profile, press key to enter edit mode, key to exit edit mode, then press ":" and then enter "wq! ! "save and exit; enter" q "to exit without saving)

7. Enable configuration and verification. In Terminal, enter:

java -version

8. A display similar to the following was successful:

java version "1.8.0_65"
Java (TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot (TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
     
         
         
         
  More:      
 
- The Objects in JavaScript (Programming)
- Ubuntu install Tonido private cloud services (Server)
- To resolve Ubuntu 14.04 Unity Desktop Environment Login freeze problem (Linux)
- Java, extends and implements Usage (Programming)
- DataGuard Standby backup error RMAN-06820 ORA-17629 to solve (Database)
- How to protect the Apache website under Linux system (Linux)
- LNMP summary of the issues common 502 Bad Gateway (Server)
- Nginx Proxy timeout Troubleshooting (Server)
- How Ubuntu Snappy Core 2 running on Raspberry Pi (Linux)
- CentOS7 install MySQL 5.5 (Database)
- Disk partition MBR (Linux)
- System with Windows Remote Desktop to connect Ubuntu 15.04 (Linux)
- Comparison of Nginx and Nginx + (Server)
- Python Django direct implementation of sql statement (Programming)
- Oracle database NUMBER (x, y) data types (Database)
- Android Custom View password box example (Programming)
- linux remote control software (Linux)
- Qt signals and slots mechanism (Programming)
- Help you make Git Bisect (Linux)
- Linux cd command Detailed (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.