summaryrefslogtreecommitdiff
path: root/docs/README
blob: 6af633444db49a3ce22301c9fcffdba9780c7159 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Scala Software Distributions
----------------------------

- scala-<major>.<minor>.<patch>.tgz         Unix distribution
- scala-<major>.<minor>.<patch>.zip         Windows distribution

The standard distributions require Java 1.5 or above. If you don't
know which version of Java you have, run the command "java -version".


Scala Tools
-----------

- fsc         Scala offline compiler
- scalac      Scala compiler
- scaladoc    Scala API documentation generator
- scala       Scala interactive interpreter
- scalap      Scala classfile decoder 

Run the command "scalac -help" to display the list of available
compiler options.


Unix Installation
-----------------

Untar the archive. All Scala tools are located in the "bin" directory.
Adding that directory to the PATH variable will make the Scala commands
directly accessible.

You may test the distribution by running the following commands:

$ ./bin/scala
scala> Array(4,3,2,1).sorted
res0: Array[Int] = Array(1, 2, 3, 4)

scala>:quit
$


Windows Installation
--------------------

Unzip the archive. All Scala tools are located in the "bin" directory.
Adding that directory to the PATH variable will make the Scala commands
directly accessible.

On Windows 95/98/Me, you must define the environment variable SCALA_HOME
to point to the home directory of the Scala distribution to run any of
these tools. This can be done by adding the following command to your
AUTOEXEC.BAT file and then rebooting your machine.

set SCALA_HOME=<install-directory>\scala-<major>.<minor>.<patch>

On Windows NT/2000/XP, you do not need to define any variable in order
for the Scala commands to run correctly.