---restore content starts---
First step: Install the jdk1.10 version
- Go to Web http://oracle.com/technetwork/java/javase/downloads/index.html download
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
- 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):
- 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)