Creating a Workspace
Note: in the steps that follow, we assume that you are setting up your workspace in a directory named U:\cs227\workspace
. If you are using your own computer, you can put the workspace wherever you wish, or just use the default suggested by Eclipse.
Start Eclipse. On a Windows machine, you can just search for "eclipse"; on a Mac you'll find Eclipse.app in the Applications folder. If you are using your own machine, you may want to create a shortcut to the executable file eclipse.exe
located in the eclipse/bin directory.
- Double-click the icon or shortcut to start Eclipse. (If a dialog appears asking you to confirm that you want to run the executable, select Run.)
- Eclipse brings a dialog asking for a workspace location. Usually there is a default value filled in. If you use the default, be sure to write down what it is so you can find it again!
- After Eclipse starts, click on the X on the tab to get rid of the welcome screen.
The next few simple exercises will acquaint you with the basics of creating a Java class in Eclipse.