Install the JDK in Ubuntu 14.04 to install jdk6,7 or 8.
Source: Internet
Author: User
http://blog.csdn.net/yuxiayiji/article/details/37812785
There are also a number of ways to install the JDK on a Linux system.
The simplest should be in the Software Center search, direct download installation, this process is automatic, can also download the installation package on the Internet, decompression installation itself, there is a way to download and install in the terminal. Here the main record of the terminal download installation steps.
Install the JDK in Ubuntu 14.04 to install jdk6,7 or 8.
. Just one JDK does not have to set the default, if there are other versions of the need to set the default version of the
Step Fourth: Configure the default JDK version
To set the JDK that we have installed as the default JDK version, the following work is done.
Execute code:
To maintain the current value [*] press ENTER or type the selected number: 3
Update-alternatives: Use/usr/lib/jvm/java-7-sun/bin/java to provide/usr/bin/java (Java) in manual mode.
Step Fifth: Test
Java-version (Displays the following information stating that the configuration was successful)
Java Version "1.7.0"
Java (TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot (TM) Client VM (build 21.0-b17, Mixed mode)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.