Downloading Scala: Before starting with the installation process, you need to download it. For that, all versions of Scala for Windows are available on scala-lang.org Download the Scala and follow the further instructions for the installation of Scala. Beginning with the Installation:
Instead of Bash, you will probably be using PowerShell, but command line tools like scala, sbt, ssh and git work pretty much the same. Setting up ssh keys on Windows requires different tools, but the fundamental concept is the same.
If your students have access to Windows 10, then I would highly recommend using WSL for linux-like utilities. The WSL environment has access to the normal windows drives, so you can save your projects on the windows file structure and access them from WSL.
This goes double for git. It might be worth to facilitate code sharing via simple folder sharing on the same network, which I believe the IT team could help set up? In any case, I find that SourceTree is ideal for git on windows (as a free tool), especially for those not experienced with git nor with shells in general.
Things like sbt and scalac run fine from the Windows command line / powershell. Things that don't, like the Ammonite REPL, I've got working using WSL (Windows Subsytem for Linux) which is baked into Windows 10. Although using WSL, there is a bit of complication, because you can't (without peril of corruption) change the Linux file system from Windows apps (e.g. IntelliJ) - though modifying the Windows file system from WSL is apparently OK -, and you can't reliably run X-windows from WSL. I'm not sure how much this matters if I'm doing a lot of stuff dialling in to a cloud service.
Incidentally, do you think it would make sense to publish coursier on the new window package manager repository ( -pkgs) ? That way eventually a full setup could be reduced to two commands on windows without needing to download anything manually:
Step 9: Set path
To include the scala directory to the path use the following command in windows:-
Right-click on My Computer ->Properties ->Advanced System setting ->Environment Variable ->Select Path->Edit
Then it will open a box in which you add the path where the java is installed by using ; (semicolon).
- [Instructor] Let's install Scala for Windows. So let's go to the official Scala website, which is scala-lang.org. And here we can click on Download, download Scala 3, and here you can see that we have an option to either download Coursier or sbt. So sbt is what's used on larger projects and is more common to see us use in our day-to-day work as Scala engineers. So let's scroll down and look at the instructions for sbt. So there are two steps that we need to take here. So step one is to get our Java Development Kit with version Java 8 or Java 11. And to install the sbt build tool and this will install Scala for us as well. So before we begin, let's just go to the command prompt and check that we don't already have Java and sbt installed on our machine. So to do that, we can write java -version and we can see that it says java is not recognized, and we can also click sbt and again, it says sbt is not recognized. So let's go back to the internet and we can click on Oracle Java 8. I'm going to open this in a new tab. And this is already on Java 8. And we can just click on Windows. And we're going to install the 64-bit executable, which is likely what you'll need as well. So I'm going to click on this. I'll click I've reviewed and accept the license and now I'll click download. So we need to sign in to our Oracle account. If you don't have an account, you can create one. So once the download has completed, we can click Open File. Wonderful, so that's all downloaded, so we can click Close. And the first thing we're going to do is set our environment variable. So in the search bar, I'm just going to type environment, and here it says edit the system environment variables within the Control panel. So I'm going to click on this. I'll click within System Properties, I'll click on environment variables. And here within path, you can see we've got two environment variables here already. Our jdk1.8.0/bin and our jre1.8.0/bin. So if we don't already have these, it's just a matter of clicking New and then copying and pasting the path. And so we get this path by going to our Finder window. We can click on This PC. Our local disk, Program Files, Java, and our jdk and bin, and here we can click copy address as text, and then we can click New and simply paste that path there. I'm not going to do that now 'cause we already have it. So I'll just delete that. And we can do exactly the same with the JRE. So again, this is the JDK. We'll do the same with the JRE. Double click bin. Copy the address as text. And again, just hit new and paste it here. So I can click OK. Another thing that is good to have is in the user variables, having a Java home. So I'll delete this one and show you how to do this. So in the variable name, we'll just write JAVA_HOME all in capitals and we'll go to our Java directory in the Finder and our JDK directory and here we're just going to copy the address as text and paste that in. So we don't need the /bin for this one. Just up to the jdk1.8.0 and we'll click OK. We'll click OK again and OK. And now we can go into our Command Prompt and let's type java -version to check that everything's installed nicely. So this is looking great. It says java version 1.8.0. And this is exactly the same as Java 8 that the Scala website asked us to install. We can also echo out the JAVA_HOME environment variable to check that that's nicely done. And wonderful, that path looks really good too. Let's go back to Internet Explorer and the last thing we want to do is install sbt. So I'm going to click on the sbt website. And just scrolling down, it gives us this file for Windows installation. So I'm going to click on this one, this .msi file. And this is starting to download. And now we're in the sbt wizard. I'm going to accept the license agreement. I'll click next and install. We can say yes, we're happy for the app to make changes. And now we can click finish. So let's go back into our Command Prompt and I'm going to close these previous Command Prompts that we've got open. Let's open a new Command Prompt. And we're going to type sbt. And now we can see welcome to sbt 1.6.1, which is really encouraging. Wonderful, so now we have sbt locally and we can see that we're in the sbt interactive shell. Here to get to the Scala REPL, which we'll use frequently in this course, we can type console and hit enter. And this is the Scala 2 REPL. When using our exercise files in this course, the build.sbt file, which we'll talk about later is set to Scala 3. So when we go into sbt in our project folder, the REPL will automatically be in Scala 3. So wonderful. The Scala REPL is working nicely. So to exit here, we can write colon and write the word quit. And then we can write exit to get outside of the sbt interactive shell. Well done, so we are all set up on Windows now with our JDK 8 and also sbt. Well done.
The development of programming models that enforce asynchronous, out of orderscheduling of operations is the concept used as the basis for the definition ofa scalable yet highly efficient software framework for Computational LinearAlgebra applications.
Versions 2.0 and higher have a graphical user interface based on the powerful Gtk+ toolkit which enables portability between Linux, Unix and Windows platforms. After installing, see readme.txt for more information.Download for Windows, Linux-Intel, Macintosh,Linux-ARM. Download the scale archiveYou can help to create more user interface translations for Scala! Now Scala is available in English and Dutch. Download the Portable Object Template. See here for an explanation.When you've made one, please email me the new .po file you've created from the scala.pot file and I will include it in the installers.Versions 1.x are a console application with only a command line which runs in a terminal window (command window, xterm, etc.)PC/Intel