Windows에서 Scala 개발 환경을 구축하는 방법

Windows에서 Scala 개발 환경을 구축하려면 다음 도구를 설치해야 합니다.
JDK 설치
여기 에서 OpenJDK(LTS)와 HotSpot을 선택하고 JDK를 다운로드합니다.

.msi 형식의 파일을 다운로드 할 수 있으므로 실행 후 지시에 따라 설치를 진행하십시오.
sbt 설치
여기 에서 설치 프로그램을 다운로드합니다.

이쪽도 JDK와 같이, 인스톨을 진행해 주세요.
IntelliJ IDEA 설치
여기에서 Community 버전의 IDEA를 다운로드하십시오. (유상이라도 좋은 분은 Ultimate판을 선택해 주세요)

IDEA 설치 프로그램을 시작하고 지시에 따라 설치하십시오.
Scala 플러그인 설치
IDEA를 처음 시작하면 아래와 같은 화면이 나옵니다. 오른쪽 하단의 Configure에서 Plugins를 선택합니다.

검색창에 "Scala"를 입력하면 JetBrains가 공식적으로 제공하는 Scala 플러그인이 맨 위에 표시되므로 이를 선택하여 설치합니다.

설치가 완료되면 Install 버튼이 Restart IDE로 변경됩니다.
이 버튼을 눌러 IDEA를 다시 시작합니다.
이제 Scala의 개발 환경을 구축할 수 있었습니다.
동작 확인
터미널 소프트웨어에서 다음 명령을 실행하여 모든 디렉토리에 Scala 프로젝트를 만듭니다.
$ sbt new scala/scala-seed.g8
프로젝트의 이름을 듣기 때문에 원하는 이름을 입력합니다. 여기 helloscala라고합니다.
name [Scala Seed Project]: helloscala
실행 후 helloscala 디렉토리가 작성됩니다.
Scala 프로젝트 가져오기
시작 시 화면에서 "Open or Import"를 선택합니다.

방금 만든 helloscala 디렉토리를 선택하고 프로젝트를 엽니다. 그런 다음 왼쪽 하단의 sbt shell을 클릭하여 sbt shell을 엽니 다.

sbt shell에서 run.com.example.HelloWorld를 입력하고 실행합니다.
[IJ] sbt:helloscala> run com.example.HelloWorld
[info] Compiling 1 Scala source to C:\Users\user\OneDrive\Desktop\scala_sample\helloscala\target\scala-2.13\classes ...
[info] Done compling.
[info] running example.Hello com.example.HelloWorld
hello
[success] Total time: 0 s, completed 2020/07/03 12:30:54
hello라고 표시되면 성공입니다.
Reference
이 문제에 관하여(Windows에서 Scala 개발 환경을 구축하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/takahashitakuya031126/items/0a21e0efd01e424dd16c텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)