1. System Configuration
VMware ubuntu16.04 64-bit
Apt-get Install Vim
2, download jdk1.8.0_151, and upload to the current Ubuntu system
3. Unzip the JDK and move to the specified directory
4. Changing Environment variables
Edit the/etc/environment, add a section like the Red Line logo, the specific JDK path, whichever is the actual path
Once saved, execute the following command to make the configuration take effect immediately
Source/etc/environment
Edit/etc/profile, append the following, in the same way, the specific JDK path, whichever is the actual path
Once saved, execute the following command to make the configuration take effect immediately
Source/etc/profile
5. Verification Results
Execute the following command to view the results
Java-version
Output Java version related information to prove that the installation was successful.
Ubuntu16.04-java Environment Configuration