You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- remove forked "get-started" steps from download
pages.
- frontpage links either side of logo are
"Get Started" and "Learn Scala"
- sub links are rearranged.
We do this now as we have one set of steps to
get started, based on coursier.
modify links on download page
add coursier step to other DL steps
make logo links bigger
<h3>First, make sure you have the Java 8 JDK (or Java 11 JDK) installed.</h3>
8
-
<p>To check, open the terminal and type:</p>
9
-
<p><code>java -version</code><span>(Make sure you have version 1.8 or 11.)</span></p>
10
-
<p><i>(If you don't have it installed, download Java from <ahref="https://www.oracle.com/java/technologies/javase-jdk8-downloads.html">Oracle Java 8</a>, <ahref="https://www.oracle.com/java/technologies/javase-jdk11-downloads.html">Oracle Java 11</a>, or <ahref="https://adoptopenjdk.net/">AdoptOpenJDK 8/11</a>. Refer <ahref="https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html">JDK Compatibility</a> for Scala/Java compatiblity detail.</i></p>
Compared to other programming languages, installing Scala is a bit unusual. Scala is unusual because it is usually installed for each of your Scala projects rather than being installed system-wide. Both of the above options manage (via sbt) a specific Scala version per Scala project you create.
52
-
<br><br>
53
-
But it's also possible to "install" Scala in numerous other ways; e.g., grab Scala binaries and use Scala from the command line or use Scala in your browser!
<aid="download-binaries">Download the Scala binaries for <spanid="users-os"></span></a>
66
33
<br/><spanclass="install"><ahref="{{ site.baseurl }}/download/install.html">Need help running the binaries?</a></span>
67
34
</li>
35
+
<li><ahref="/documentation/getting-started-intellij-track/getting-started-with-scala-in-intellij.html">Download and use Scala</a><span> with </span><ahref="https://www.jetbrains.com/idea">IntelliJ</a><span> and then </span><ahref="/documentation/getting-started-intellij-track/building-a-scala-project-with-intellij-and-sbt.html">build a project</a><span>, then </span><ahref="/documentation/getting-started-intellij-track/testing-scala-in-intellij-with-scalatest.html">test it.</a></li>
68
36
<li>Using <ahref="https://sdkman.io/">SDKMAN!</a>, you can easily <ahref="https://sdkman.io/sdks#scala">install specific versions of Scala</a> on any platform with <code>sdk install scala {{ site.scalaversion }}</code></li>
69
37
<li>On macOS you can also use <ahref="https://brew.sh/">Homebrew</a> and existing <ahref="https://formulae.brew.sh/formula/scala">Scala Formulae</a><br/><code>brew update</code><br/><code>brew install scala</code></li>
70
38
<li>With <ahref="https://www.macports.org/">MacPorts</a>, you can get Scala using <code>sudo port install scala2.x</code>command.<br/> For example to install Scala 2.12 simply use<code>sudo port install scala2.12</code></li>
@@ -76,12 +44,7 @@ <h2>Other ways to install Scala</h2>
76
44
</div>
77
45
</div>
78
46
79
-
80
-
<h3>Release Notes</h3>
81
-
For a summary of important changes, see the <ahref="https://github.com/scala/scala/releases">GitHub release notes</a>.
82
-
<br/><small>(Or consult our archive of <ahref="{{ site.baseurl }}/blog/announcements/">older release notes</a>.)</small>
83
-
84
47
{% include download-resource-list.html %}
85
-
<h3>License</h3>
86
-
<p>The Scala distribution is released under the {{page.license}}.</p>
87
48
</div>
49
+
<h3>License</h3>
50
+
<p>The Scala distribution is released under the {{page.license}}.</p>
Scala binaries for <strong>{{page.release_version}}</strong> are available at <ahref="https://github.com/lampepfl/dotty/releases/tag/{{page.release_version}}">github</a>.
2
2
3
-
<h2>Getting Started with Scala 3</h2>
4
-
<divclass="install-steps">
5
-
<p>
6
-
Depending on your experience and your requirements, there exist two ways to
7
-
install Scala 3 on your computer,
8
-
either through <ahref="https://www.scala-sbt.org/download.html">sbt</a>, or
9
-
through <ahref="https://get-coursier.io/docs/cli-installation">Coursier</a>.
<h3>Install the <i>Coursier</i> Scala artifact fetcher.</h3>
45
-
<p>Visit the <ahref="https://get-coursier.io/">Coursier website</a> for detailed installation instructions on how to install Coursier.</p>
46
-
<p><i>(Coursier is the simplest way to get started with Scala, since it will automatically download and install all necessary dependencies for you).</i></p>
47
-
</div>
48
-
</div>
49
-
<!-- <div class="step">
50
-
<div class="number-step">2</div>
51
-
<div class="text-step">
52
-
<h3>Then, prepare your environment</h3>
53
-
<p>Open a terminal and run the following command: <code>cs setup</code></p>
54
-
<p><i>(Running this <a href="https://get-coursier.io/docs/cli-setup">command</a> installs the correct Java version along with some other helpful command line tools).</i></p>
<p>Open a terminal and run the following commands:</p>
63
-
<p><code>cs install scala3-compiler</code><span>to install the Scala 3 compiler.</span></p>
64
-
<p><code>cs install scala3</code><span>to install the Scala 3 code runner</span></p>
65
-
</div>
66
-
</div>
67
-
<divclass="step">
68
-
<divclass="number-step">3</div>
69
-
<divclass="text-step">
70
-
<h3>Use Scala 3</h3>
71
-
<p>The command <code>scala3</code> will start the Scala console, it is an interactive read-eval-print-loop that you can use to directly enter and run Scala expressions.</p>
72
-
<p>To use the Scala 3 compiler to compile a file <code>test.scala</code>, run<code>scala3-compiler test.scala</code> in your terminal.</p>
73
-
<p>The command <code>scala3 hello Scala</code> will run the main method of a class called <code>hello</code>, passing the argument <code>"Scala"</code>.</p>
<h3>First, make sure you have the Java 8 JDK (or Java 11 JDK) installed.</h3>
86
-
<p>To check, open the terminal and type:</p>
87
-
<p><code>java -version</code><span>(Make sure you have version 1.8 or 11.)</span></p>
88
-
<p>The environment variable <code>JAVA_HOME</code> should point to your Java installation.</p>
89
-
<p><i>(If you don't have it installed, download Java from <ahref="https://www.oracle.com/java/technologies/javase-jdk8-downloads.html">Oracle Java 8</a>, <ahref="https://www.oracle.com/java/technologies/javase-jdk11-downloads.html">Oracle Java 11</a>, or <ahref="https://adoptopenjdk.net/">AdoptOpenJDK 8/11</a>. Refer <ahref="https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html">JDK Compatibility</a> for Scala/Java compatiblity detail.</i></p>
<p>To create a new Scala 3 project, go to your terminal and run <code>sbt new scala/scala3.g8</code>.</p>
106
-
<p>After entering the name of your project (let's say <code>MyProject</code>), in your terminal go to the generated folder (for example <code>myproject</code>) and run the command <code>sbt run</code>.</p>
107
-
<p>You should be greeted with a friendly message.</p>
108
-
<p><i>(Following conventions for the <ahref="https://www.scala-sbt.org/1.x/docs/Directories.html">directory structure</a>, the Scala source files are located under <code>src/main/scala</code>).</i></p>
Download the Scala binaries for <strong>{{page.release_version}}</strong> at <ahref="https://github.com/lampepfl/dotty/releases/tag/{{page.release_version}}">github</a>.
121
34
<br/><spanclass="install"><ahref="{{ site.baseurl }}/download/install.html">Need help running the binaries?</a></span>
@@ -131,10 +44,5 @@ <h2>Other ways to install Scala</h2>
131
44
</div>
132
45
</div>
133
46
</div>
134
-
135
-
<h3>Release Notes</h3>
136
-
For a summary of important changes, see the <ahref="https://github.com/lampepfl/dotty/releases/tag/{{page.release_version}}">GitHub release notes</a>.
137
-
<br/><small>(Or consult our archive of <ahref="{{ site.baseurl }}/blog/announcements/">older release notes</a>.)</small>
138
-
139
47
<h3>License</h3>
140
48
<p>The Scala distribution is released under the {{page.license}}.</p>
0 commit comments