Win10 installs Scala, ideac installs Scala plug-in, server deployment Scala

Install Scala on win10

Unzip and install Scala

scala-2.11.8

Configure environment variables

Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here

Insert picture description here
Insert picture description here
Insert picture description here

test result

Press win+R, enter cmd and press Enter, the result is as follows:
Insert picture description here
Insert picture description here
Enter scala, and the successful result is as follows:

Insert picture description here

Ideac install Scala plugin

Open ideac

Insert picture description here

Select file and choose settings

Insert picture description here

Choose a plug-in

Insert picture description here

Select markerplace, and search for Scala

Insert picture description here

Restart ideac

Insert picture description here

Scala first experience

Create project

Insert picture description here
Insert picture description here
Insert picture description here

test result

Insert picture description here
The picture shows success

Create package

Insert picture description here
Insert picture description here

Create Scala class

Insert picture description here
Insert picture description here

test result

Insert picture description here

Write code

package cn.itcast.scala

object HelloWorld {
    
    
  def main(args: Array[String]): Unit = {
    
    
    println("Hello,World!")
  }
}

test result

Insert picture description here

Server deployment and installation of Scala

Connect to your server

ssh IP

Successful result:
Insert picture description here

Use xftp to transfer files

Insert picture description here
Insert picture description here

Unzip the file to the specified folder

cd /software/
tar -zxvf /download/scala-2.11.8.tgz
mv scala-2.11.8/ scala

Configure system variables

vi /etc/profile
#scala
export SCALA_HOME=/software/scala
export PATH=$PATH:$SCALA_HOME/bin

Press esc to enter: wq press enter

source /etc/profile

test result

scala

The results are as follows:
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_44843672/article/details/114258922