Permalink
Browse files

Merge pull request #15 from axel22/gh-pages

Some links updated in the wiki.
  • Loading branch information...
2 parents 11819f8 + 1a6833a commit 9ce39b2a8b719dc3898d81209759244094517e66 @lrytz lrytz committed Mar 21, 2013
Showing with 20 additions and 20 deletions.
  1. +3 −3 EclipseTutorial.md
  2. +7 −7 SbtTutorial.md
  3. +10 −10 ToolsSetup.md
View
@@ -9,9 +9,9 @@ The [Tools Setup](?page=ToolsSetup) page explains how to install the Scala IDE f
## Opening the Project in Eclipse
-The handout archives for the programming assignments already contain all the necessary project definition files for eclipse. Follow these steps to work on the project using the Scala IDE:
+The handout archives for the programming assignments already contain all the necessary project definition files for Eclipse. Follow these steps to work on the project using the Scala IDE:
-1. Start up eclipse
+1. Start up Eclipse
1. Select "File" - "Import" from the menu
1. In the folder "General", select the item "Existing Projects into Workspace" and click "Next >"
1. In the textfield "Select root directory:" select the directory where you unpacked the downloaded handout archive
@@ -20,7 +20,7 @@ The handout archives for the programming assignments already contain all the nec
## Working with Eclipse
-To learn how to use the Scala IDE, we recommend you to watch the official tutorial video which is available here: [http://scala-ide.org/docs/user/features.html](http://scala-ide.org/docs/user/features.html).
+To learn how to use the Scala IDE, we recommend you to watch the official tutorial video which is available here: [http://scala-ide.org/docs/current-user-doc/gettingstarted/index.html](http://scala-ide.org/docs/current-user-doc/gettingstarted/index.html).
This website also contains a lot more useful information and handy tricks that make working with eclipse more efficient.
View
@@ -20,9 +20,9 @@ You can start the Scala interpreter inside sbt using the `console` task. The int
In order to quit the interpreter and get back to sbt, type `ctrl-d`.
- > console # In the sbt shell, we run the task `console`
+ > console
[info] Starting scala interpreter...
- Welcome to Scala version 2.10.0-M5 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_33).
+ Welcome to Scala version 2.10.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_04-ea).
Type in expressions to have them evaluated.
Type :help for more information.
@@ -36,7 +36,7 @@ In order to quit the interpreter and get back to sbt, type `ctrl-d`.
squares: List[Int] = List(1, 4, 9)
scala> # Type [ctrl-d] to exit the Scala REPL
- [success] Total time: 20 s, completed Aug 10, 2012 10:08:23 PM
+ [success] Total time: 20 s, completed Mar 21, 2013 11:02:31 AM
> # We're back to the sbt shell
@@ -45,8 +45,8 @@ In order to quit the interpreter and get back to sbt, type `ctrl-d`.
The `compile` task will compile the source code of the assignment which is located in the directory `src/main/scala`.
> compile
- [info] Compiling 4 Scala sources to /Users/luc/example/target/scala-2.10.0-M5/classes...
- [success] Total time: 2 s, completed Aug 10, 2012 10:00:26 PM
+ [info] Compiling 4 Scala sources to /Users/aleksandar/example/target/scala-2.10.1/classes...
+ [success] Total time: 1 s, completed Mar 21, 2013 11:04:46 PM
>
If the source code contains errors, the error messages from the compiler will be displayed.
@@ -112,9 +112,9 @@ The sbt task `submit` allows you to submit your solution for the assignment. It
The `submit` tasks takes two arguments: your e-mail address and the submission password. **NOTE**: the submission password is **not your login password**. Instead, it's a special password generated by coursera. It is available on the [Assignments](../assignment/index) page.
> submit e-mail@university.org suBmISsioNPasSwoRd
- [info] Packaging /Users/luc/example/target/scala-2.10.0-M5/progfun-example_2.10.0-M5-1.0.0-sources.jar ...
+ [info] Packaging /Users/luc/example/target/scala-2.10.1/progfun-example_2.10.1-1.0.0-sources.jar ...
[info] Done packaging.
- [info] Compiling 1 Scala source to /Users/luc/example/target/scala-2.10.0-M5/classes...
+ [info] Compiling 1 Scala source to /Users/luc/example/target/scala-2.10.1/classes...
[info] Connecting to coursera. Obtaining challenge...
[info] Computing challenge response...
[info] Submitting solution...
View
@@ -16,8 +16,8 @@ title: Tools Setup
In order to work on the programming assignments, you need to have the following tools installed on your machine:
- JDK, the Java Development Kit, version 1.6 or 1.7
- - Sbt, a build tool for Scala, version 0.12.0
- - The Scala IDE for Eclipse and the Scala Worksheet
+ - Sbt, a build tool for Scala, version 0.12.2
+ - The Scala IDE for Eclipse
Please follow the instructions on this page carefully. You can also watch one of the following videos that explain how to set up your machine:
@@ -38,7 +38,7 @@ Please follow the instructions on this page carefully. You can also watch one of
* **Manual Installation**: To install the JDK manually on a Linux system, follow these steps:
- 1. Download the `.tar.gz` archive from [http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html](http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html)
+ 1. Download the `.tar.gz` archive from [http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html](http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html)
1. Unpack the downloaded archive to a directory of your choice
1. Add the `bin/` directory of the extracted JDK to the `PATH` environment variable. Open the file `~/.bashrc` in an editor (create it if it doesn't exist) and add the following line
```export PATH=/PATH/TO/YOUR/jdk1.7.0-VERSION/bin:$PATH```
@@ -53,7 +53,7 @@ To verify your JDK installation, open the `Terminal` application in `/Applicatio
### Windows
- - Download the JDK installer for Windows from [http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html](http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html)
+ - Download the JDK installer for Windows from [http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html](http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html)
- Run the installer
- Add the `bin\` directory of the installed JDK to the `PATH` environment variable, as described here: [http://www.java.com/en/download/help/path.xml](http://www.java.com/en/download/help/path.xml)
@@ -64,7 +64,7 @@ To verify the JDK installation, open the Command Prompt and type `java -version`
### Linux
- - Download sbt from here: [http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.0/sbt.tgz](http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.0/sbt.tgz)
+ - Download sbt from here: [http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.2/sbt.tgz](http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.2/sbt.tgz)
- Unpack the archive to a directory of your choice
- Add the `bin/` directory to the `PATH` environment variable. Open the file `~/.bashrc` in an editor (create it if it doesn't exist) and add the following line
```export PATH=/PATH/TO/YOUR/sbt/bin:$PATH```
@@ -77,7 +77,7 @@ If you use the [homebrew](http://mxcl.github.com/homebrew/) package manager, sim
Otherwise, install sbt by following these steps:
- - Download sbt from here: [http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.0/sbt.tgz](http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.0/sbt.tgz)
+ - Download sbt from here: [http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.2/sbt.tgz](http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.2/sbt.tgz)
- Unpack the archive to a directory of your choice
- Add the `bin/` directory to the `PATH` environment variable. Open the file `~/.bash_profile` in an editor (create it if it doesn't exist) and add the following line
```export PATH=/PATH/TO/YOUR/sbt/bin:$PATH```
@@ -86,7 +86,7 @@ Verify that sbt is installed correctly: Open a new terminal (to apply the change
### Windows
- - Download the sbt installer from here: [http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.0/sbt.msi](http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.0/sbt.msi)
+ - Download the sbt installer from here: [http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.2/sbt.msi](http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.2/sbt.msi)
- Run the installer
Verify that sbt is installed correctly: open the Command Prompt and type `sbt sbt-version`, you should see the version number of sbt (the first time you run it, sbt will download libraries from the internet). If you have problems installing sbt, ask for help on the forums.
@@ -96,9 +96,9 @@ Verify that sbt is installed correctly: open the Command Prompt and type `sbt sb
You can download the Scala IDE for eclipse with the Scala Worksheet pre-installed from the following URL:
-[http://typesafe.com/stack/scala_ide_download](http://typesafe.com/stack/scala_ide_download)
+[http://typesafe.com/stack/scala_ide_download](http://www.typesafe.com/stack/downloads/scala-ide)
-After downloading the archive for your operating system, simply unpack it start eclipse. Eclipse requires you to select a workspace on startup. We recommmend you create one workspace directory for this class and use it for all assignments.
+After downloading the archive for your operating system, simply unpack it and start eclipse. Eclipse requires you to select a workspace on startup. We recommmend you create one workspace directory for this class and use it for all assignments.
### Hello World: Scala IDE and the Scala Worksheet
@@ -132,7 +132,7 @@ Creating a Scala Worksheet is very easy:
1. Right-click on the package `greeter` in the hello world project that you just created
1. Select "New" - "Scala Worksheet"
-1. Choose a name for your worksheet
+1. Choose a name for your worksheet (different than `Hello` or the name you chose for the "Scala Object" before)
Now you can type some Scala code into the worksheet. Every time you save the file, the content of the worksheet will be evaluated. Copy the following code into the object of your worksheet:

0 comments on commit 9ce39b2

Please sign in to comment.