Set the source code to the default software after installation

Source: Internet
Author: User

After we often use the source code to install a software program, the system will prompt that the software does not exist when entering the software program. This is because it is not associated with the system by default. Such as MySQL and JDK.

 

The following is the default method associated with the system.

Take JDK as an Example

 

(The sudo VI/etc/environment command sets the environment variable. There are many ways to set this, one of which)

 

Update-alternatives -- install/usr/bin/Java/usr/lib/JVM/Java/jdk1.6.0 _ 12/bin/Java 300
Update-alternatives -- install/usr/bin/javac/usr/lib/JVM/Java/jdk1.6.0 _ 12/bin/javac 300

 

If you have multiple jdks, We need to configure them after using a default command above ..

 

Update-alternatives -- config Java

 

If there is only one, it is unnecessary ..

Related Article

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.