Jdk1.10+scala Environment-built Linux environment (centos6.9)

Source: Internet
Author: User

---restore content starts---

First step: Install the jdk1.10 version

  1. Go to Web http://oracle.com/technetwork/java/javase/downloads/index.html download

  2. I chose the way RPM was installed, so I downloaded the RPM package: Remember that no--no-cookies may be reported similar to Error:open of

    wget--no-cookies--no-check-certificate--header "Cookie:oraclelicense=accept-securebackup-cookie"/HTTP/ download.oracle.com/otn-pub/java/jdk/10.0.1+10/fb4372174a714e6b8c52526dc134031e/jdk-10.0.1_linux-x64_bin.rpm

  3. I'm going to install it under/usr/local/java so I'll put the file MV over later, perform the installation

    RPM-IVH jdk-10.0.1_linux-x64_bin.rpm

    There are some icons in the illustration (normal without tube):

  4. modifying Linux environment variables
    Vim/etc/profile at the end of the file, add the following (red place, you can cd/usr/java under the name of their own file) and then read the configuration Source/etc/profile

    Export java_home=usr/java/jdk-10.0.1(here for your own JDK installation path)
    Export Jre_home=${java_home}/jre
    Export classpath=.:${java_home}/lib:${jre_home}/lib
    Export path=${java_home}/bin:$PATH

5 Execute java-version and javac-version if it can appear the instructions shown in Java installation complete
  

Step Two: Install the Scala https://scala-lang.org/download/page to download

1, wget https://downloads.lightbend.com/scala/2.12.6/scala-2.12.6.tgz

2, unzip TAR-ZXF scala-2.12.6.tgz

3. Rename the pressurized file to Scala MV/your Unzip folder/destination folder/scala (I am installing Usr/loca/scala below)

  

4, edit the system variable Vim/etc/profile in the last add

Export Scala_home=/usr/local/scala/scala (use your own SCALA folder path here)
Export path= $PATH: $SCALA _home/bin

  

5,source/etc/profie

6. Execute the Scala command successfully, Theo!

    

    

Jdk1.10+scala Environment-built Linux environment (centos6.9)

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.