DOC PREVIEW
Stanford CS 106A - Downloading Eclipse

This preview shows page 1 out of 4 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Eric Roberts Handout #7CS 106A January 6, 2010Downloading EclipseMuch of this handout was written by Justin Manus and Brandon Burr.This quarter we’ll be using Stanford’s customized version of Eclipse to build ourprograms. Eclipse is an enormously popular industrial strength Java environment withmany, many features. Fortunately, Eclipse is also open source—anyone is free to changeEclipse to work the way they want. We have taken advantage of that freedom to installspecial Stanford features into Eclipse, to tailor it specifically for CS 106A. This documentgives instructions on how to get starting using Eclipse, and its Stanford features inparticular. If you run into any trouble installing Eclipse, please email Chris Piech [email protected] EclipseBefore you begin to write programs for Karel or Java, you will need to obtain a copy ofEclipse from the CS 106A course website. The process for downloading Eclipse dependson what system you are using. The instructions for the Macintosh are shown in Figure 1,and those for Windows machines appear in Figure 2. On either platform, the process maytake a while, so be patient!Figure 1. Instructions for downloading Eclipse on a MacintoshOur version of Eclipse will only work on Mac OS X version 10.2 or higher. If youdon’t have that version of the operating system (or you are running OS 9), you’ll needto either upgrade or do your class work in a public cluster.1. Get Eclipse from the CS 106A website. Before you begin to write your first Javaor Karel program, you will need to obtain a copy of Eclipse from the CS 106Acourse website. To do so, go to http://cs106a.stanford.edu/, click onSoftware, click on Stanford Eclipse for Macintosh OSX, and then save thestanford_eclipse32_mac.zip file somewhere on your hard drive.2. Install Eclipse.a. Double-click the stanford_eclipse32_mac.zip file, which will create afolder named eclipse.b. Drag the eclipse folder to the Applications folder.3. Create a shortcut. Open the eclipse folder (the one you just dragged into theApplications folder), and drag the square Eclipse icon to your dock.4. Make sure you have the latest version of Java (version 1.5 or higher). Mostrecently purchased Macs will come with Java version 1.5 (or higher) pre-installed.To make sure you have the latest version, select the Software Update item underthe Apple menu. If the update program determines that you need to upgrade to themost recent version of Java, follow the instructions for doing so.– 2 –Figure 2. Instructions for downloading Eclipse on a Windows-based platformOur version of Eclipse runs only on the Windows 2000, XP, Vista, and Windows 7operating systems. If you have Windows 98 or ME on your computer, you will needto do your class work in one of the public computer clusters. Before installingEclipse, you will first need to have a copy of the latest version of the Java JRE (JavaRuntime Environment) installed on your computer. Note that Java version 1.6 is thelatest version of Java. If you don’t know which version, if any, of the JRE you have,or want to upgrade to the latest version, just start at Step 1.1. Uninstall previous versions of the JRE. Before installing a new version of theJRE, we recommend that you remove any older copies that may be installed.a. Open the control panel by clicking on Start, then Settings, then Control Panelb. Then select Add or Remove Programs (on XP) or Programs and Features (on Vistaor Windows 7)c. From the list of programs you see, uninstall any occurrences of Java/J2SERuntime Environment, Java SDK, or Java Update. Note that the exact program namemay be slightly different or include a version number, but you generally wantto remove anything that includes the text: Java/J2SE Runtime Environment,Java SDK, or Java Update.2. Get the JRE from the CS106A website.a. You can obtain a copy of the Java JRE version 1.6 from the CS106A website:http://www.stanford.edu/class/cs106a. Click on the Software section linkand then click on the Java 1.6 JRE installer for the PC link.b. After clicking this link a prompt will appear to ask you whether you want torun or save the file. Click Run to begin the download and installation process.If a subsequent security warning dialog box appears, click Run (or Yes) tocontinue with the installation.c. The Java JRE installation program should begin. Do a Typical installation, andfollow the rest of the instructions given in order to complete your installation.3. Get Eclipse from the CS 106A website. Before you begin to write your first Javaor Karel program, you will need to obtain a copy of Eclipse from the CS 106Acourse website. To do so, go to http://cs106a.stanford.edu/, click on theSoftware section link and then click on Stanford Eclipse for Windows, and save the fileto somewhere on your hard drive. This may take a little while as the file beingdownloaded is rather large.4. Install Eclipse. Unzip/extract the contents of the file by right-clicking on thefolder you just downloaded (which is named eclipse-SDK-3.4.2-win32), selecting theExtract All... option and typing C:\Program Files\Eclipse as the location toextract the files to. Note that you may need to create a new folder located atC:\Program Files\Eclipse prior to performing the unzip/extract. Then continuefollowing the steps in the extraction process. (Note: if your version of Windowsdoes not have built-in support for unzipping/extracting programs, you can obtain aprogram to unzip/extract files at http://www.winzip.com.)5. Create a shortcut. After extracting Eclipse, you can then create a shortcut foreasy access to the program.a. Open the C:\Program Files\Eclipse\eclipse directoryb. Right-click and drag the eclipse.exe file (i.e., the eclipse application) toyour desktop and then select the option Create shortcut here.– 3 –Running EclipseAt this point you should have Eclipse installed and working on your computer. When yourun eclipse for the first time, you may get a screen that looks like this:A workspace is just a directory that Eclipse will use to place new projects in. In 106Ayou won’t have to make any new projects from scratch. We will always give you skeletonprojects for your assignments, so you don’t need to worry about where the workspace is.The suggested location is fine. Click the Use this as the default and do not ask againcheckbox, and then click OK. Once you do, Eclipse will start running and—after whatmay seem like a relatively long time—bring up


View Full Document

Stanford CS 106A - Downloading Eclipse

Download Downloading Eclipse
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Downloading Eclipse and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Downloading Eclipse 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?