Install java under ubuntu-general Linux technology-Linux programming and kernel information. The following is a detailed description. Open the terminal and execute the following command:
Sudo apt-get install sun-java6-jre
We recommend that you install JDK:
Sudo apt-get install sun-java6-jdk # Do not install jdk after jre is installed
Or use the new software manager to search for "sun-java6-jre" and "sun-java6-jdk", tag the installation and apply, respectively.
Tip: During the installation process, you need to answer whether you agree to use the Protocol (the red-blue prompt page in the terminal). Press the tab key to OK, and press enter to install it normally.
Set the current default java interpreter:
Sudo update-alternatives -- config java
The following figure is displayed after execution:
There are two options available, both of which provide "java" <
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service