Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install Scala on Windows

2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

You need to install the Java environment before installing Scala, so the details of the installation are not described here.

You can search our website for help from other sites to find out how to install the Java environment.

Next, we can download the Scala binary package from Scala's official website https://www.scala-lang.org/download/. We will download version 2.12.8 of this tutorial, as shown in the following figure:

You can download the msi file and double-click to install it. Then follow the installation instructions and install it step by step.

You can use the default installation directory during the installation process. After installing Scala, the system will automatically prompt, click Finish to complete the installation.

You can download the zip folder from the official website. In our installation tutorial, we installed it as a zip file. Suppose you put the extracted files in the C:\ Users\ Yucheng\ Dkits\ directory, and scala is the unzipped folder. You can prevent this folder from going anywhere in your system.

Right-click my computer and click Properties to go to the page shown in the figure.

To configure environment variables, right-click * * my computer * *-> * * Properties * * → * * Advanced system Settings * * → * * environment variables, as shown in the figure:

Set the variable for SCALA_HOME.

Click New, enter: SCALA_HOME in the variable name field, and enter: C:\ Users\ Yucheng\ Dkits\ scala in the variable value column, which is the directory where scala is installed, depending on your individual situation. The installation path may also be different.

Create a new installation variable:

Enter the value of the variable:

Set the Path variable:

Find the "Path" under the system variable as shown in the figure, and click Edit. Add the following path to the front of the variable value column:% SCALA_HOME%\ bin

You can set the Path variable for the user, or you can set the Path variable for the system.

Add variables to the startup Path so that the command line can navigate to the desired bin file at startup.

The one that comes first in the value of a variable; don't miss it. Finally, click OK.

Check to see if the environment variable is set: call up the "powershell" check, or you can use "cmd" to check.

Click [start], type powershell in the input box, then enter "enter", type scala, and then enter. If there is no problem with setting the environment variables, you should be able to see these messages.

Https://www.cwiki.us/pages/viewpage.action?pageId=41686079

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report