Installing the development environment (Eclipse) can be very easy if you are lucky. But sometimes it turns out to be more complicated. The reason for this is that there are always new features, like a new Windows, a new MacOS, a new Java, or a new Eclipse. Every time a new version is released, there are new installation problems. But so far we've still got it running on every computer. If you belong to the YouTube generation, you might want to watch some videos on HowTo Videos for CS106A (https://www.youtube.com/user/CS106AVideos). But they are not always up to date.
Java
Recently, Java has been causing all kinds of pains. Please make sure to use the old Java JDK 1.8! Almost all problems we encountered during installation went away with Java 1.8.
Windows
For Windows, there are two ready-made versions, one for 32-bit and one for 64-bit Windows, here. It is best to download the version for your own operating system, unzip it (this is very important!), and double-click on "eclipse.exe". That should be it. If it doesn't work, try the 32-bit version instead of the 64-bit one. Doesn't make sense, but still works most of the time. If that doesn't work either, you can also use the normal Eclipse (www.eclipse.org/luna/). It should be possible to install the Stanford plugin by hand (see under "Linux").
MacOS
If you use a Mac, follow the instructions on the Stanford website, (https://web.stanford.edu/class/cs106a/eclipse.html). Unfortunately, this page disappears every now and then, in case it does, just google for "Stanford Eclipse MacOS". If that doesn't help, you can also use the normal Eclipse (www.eclipse.org/luna/). Actually, the last step under Linux installation (i.e. installing the Stanford plugin by hand) should also work on MacOS.
Linux
The installation for Linux consists of two steps. First you install Eclipse, preferably from a terminal window using apt-get:
sudo apt-get update
sudo apt-get install eclipse
In the second step, you install the Stanford Eclipse Plug-in (search on Google, because the Stanford website is constantly changing, the last time it was under: http://www.stanford.edu/class/cs106a/software/eclipse_plugin.zip). Unzip the whole thing and copy the jar file into the /dropins directory of Eclipse:
sudo cp edu.stanford.cs106_1.0.0.jar /usr/share/eclipse/dropins/
Now the Stanford menu and Stanford icons should appear when you start Eclipse.
First Steps
After we made Eclipse work, the next step is to run our first Karel program. First we have to download the file "Ch1_Karel.zip" to our computer (you can find it in the source code to the book). Then we import the project with "File -> Import..." and there with "General -> Existing Project into Workspace". In the following window we select "Select archive file:" and navigate with "Browse...". button to the place where we saved the Ch1_Karel.zip. Then click on "Finish", that should be it. In the "Package Explorer" then "Ch1_Karel.zip" should appear. If we open the project, we should find our "FirstKarel.java" under "(default package)". Just double-click to open. To run the program now, select "Stanford Menu -> Run (select class)".
Author
You can reach the author via email at "ralph at lano.de". Please make sure you use "Java Book" in the subject line, otherwise your email might end up in the spam filter.
.
.