Walkthrough to get Scala to run on .net?

I have never used the .Net framework and should demonstrate to someone that Scala really works on .Net. I need to get a β€œquick and dirty” .Net setup with Scala, working on some Scala JVM code. I could not find a walkthrough for this. I would appreciate some resources on this:

  • How to set the minimum .Net and which version to get Scala to work.
  • How to install the .Net version of Scala and which version to use (preferably 2.9).
  • How to get hello to the world.

Thanks in advance. Platform in question: Windows 7 Professional 32 bit.

+6
scala
source share
2 answers

Self-evident file

helloworld.scala

/* see https://github.com/magarciaEPFL/scaladotnet#readme quick test ========== 1. Name this file helloworld.scala and put it in c:\scala-dotnettest 2. Download binaries from https://github.com/magarciaEPFL/scaladotnet/downloads and unpack the zipped files to the directory c:\scala-dotnet 3. Compile with: c:\scala-dotnet\scalacompiler -dc:\scala-dotnettest -target:exe -Xassem-extdirs c:\scala-dotnet -Xassem-name helloworld.exe -Xshow-class HelloWorld helloworld.scala 4. Copy runtime dependencies scalalib.dll, IKVM.OpenJDK.Core.dll, IKVM.OpenJDK.Util.dll and IKVM.Runtime.dll (or all IKVM*.dll) from c:\scala-dotnet to c:\scala-dotnettest 5. run helloworld C:\scala-dotnettest>helloworld Hello World! */ object HelloWorld extends App { println("Hello World!") } 
+6
source share

There are a few instructions here:

http://lampwww.epfl.ch/~magarcia/ScalaNET/2011Q2/PreviewScalaNET.pdf

Along with an interview with Miguel Garcia, who was (is there?) Working on it here

http://www.scala-lang.org/node/10299/

0
source share

All Articles