In linux, the java upgrade record-general Linux technology-Linux programming and kernel information. The following is a detailed description. For some reason, the applet on the website developed by the group must be under 6.0. to upgrade the jdk version of the server, perform the following operations:
1. Input in shell
> Export JAVA_HOME =/usr/java/jdk1.6
Problem: the effect of the export command only applies to this login operation. After you log out, restore the system configuration.
2. Add the following content to the. bashrc file as instructed on the Internet:
Export JAVA_HOME =/usr/java/latest/
Problem: I used java-version to check whether the version remains unchanged because the java command directly looks for the system command path.
3. Add the following content to the complete modification. bashrc file:
Export JAVA_HOME =/usr/java/latest/
Export PATH = $ JAVA_HOME/bin: $ PATH
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