Installing the standalone JDK in a Linux system with OPENJDK installed by default

Source: Internet
Author: User

Installation of the independent JDK process will not speak, not to Baidu's on it.

Change default to JDK below

1. Update parameters to make configuration effective

Update-alternatives--install/usr/bin/java java /***/bin/java 300

Update-alternatives--install/usr/bin/javac javac /***/bin/javac 300

Description: * * * for standalone installation of JDK path

2. Select the version you want to use

In the terminal input command: update-alternatives–-config java

Follow the prompts to select the standalone JDK serial number, enter to

Enter Java-version to see if it has been changed.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.