Installation of Linux Mint 18.1 under JDK

Source: Internet
Author: User
Tags linux mint

First download the OPENJDK installed by itselfsudo apt-get update && apt-get remove openjdk*

Download the JDK from Oracle website and extract it to/USR/LIB/JVM, if there is no JVM folder, create it Yourself

And then to the home directory there are. BASHRC hides the file, edits the file, and finally writes the following statement

export JAVA_HOME =/usr/lib/jvm/jdk1.8  .0_131  export jre_home=  ${java_home}/jre  export Classpath=.:  ${java_home}/lib:  ${jre_home}/lib  export path=  ${JAVA_HOME }/bin:   $PATH  

Finally input java-version in the terminal will show the Java environment

Installation of the JDK under Linux Mint 18.1

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.