Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Getting Started with Scala in IntelliJ #3120

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ In this tutorial, we'll see how to build a minimal Scala project using IntelliJ
IDE with the Scala plugin. In this guide, IntelliJ will download Scala for you.

## Installation
1. Make sure you have the Java 8 JDK (also known as 1.8)
* Run `javac -version` on the command line and make sure you see
`javac 1.8.___`
* If you don't have version 1.8 or higher, [install the JDK](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
1. Next, download and install [IntelliJ Community Edition](https://www.jetbrains.com/idea/download/)
1. Make sure you have the Java 8 JDK (also known as 1.8) or newer:
* run `javac -version` on the command line to check the Java version,
* if you don't have version 1.8 or higher, [install the JDK](https://www.oracle.com/java/technologies/downloads/).
1. Next, download and install [IntelliJ Community Edition](https://www.jetbrains.com/idea/download/).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Double check for sure but Intellij should auto handle JDK installation?

1. Then, after starting up IntelliJ, you can download and install the Scala plugin by following the instructions on
[how to install IntelliJ plugins](https://www.jetbrains.com/help/idea/installing-updating-and-uninstalling-repository-plugins.html) (search for "Scala" in the plugins menu.)
[how to install IntelliJ plugins](https://www.jetbrains.com/help/idea/managing-plugins.html) (search for "Scala" in the plugins menu.)

When we create the project, we'll install the latest version of Scala.
Note: If you want to open an existing Scala project, you can click **Open**
when you start IntelliJ.

## Creating the Project
1. Open up IntelliJ and click **File** => **New** => **Project**
1. On the left panel, select Scala. On the right panel, select IDEA.
1. Name the project **HelloWorld**
1. Open up IntelliJ and click **File** => **New** => **Project**.
1. Name the project **HelloWorld**.
1. Select **Scala** from the **Language** list.
1. Select **IntelliJ** from the **Build system** list.
1. Assuming this is your first time creating a Scala project with IntelliJ,
you'll need to install a Scala SDK. To the right of the Scala SDK field,
click the **Create** button.
1. Select the highest version number (e.g. {{ site.scala-version }}) and click **Download**. This might
take a few minutes but subsequent projects can use the same SDK.
1. Once the SDK is created, and you're back to the "New Project" window, click **Finish**.
1. Once the SDK is created, and you're back to the "New Project" window, click **Create**.


## Writing code
Expand Down