Presentation is loading. Please wait.

Presentation is loading. Please wait.

15-Jul-15 Starting Eclipse Just the basics. Getting Eclipse If you Google for “Eclipse”: The first hit is the home page, The second.

Similar presentations


Presentation on theme: "15-Jul-15 Starting Eclipse Just the basics. Getting Eclipse If you Google for “Eclipse”: The first hit is the home page, The second."— Presentation transcript:

1 15-Jul-15 Starting Eclipse Just the basics

2 Getting Eclipse If you Google for “Eclipse”: The first hit is the home page, http://www.eclipse.org/ The second hit is “Eclipse Downloads,” http://www.eclipse.org/downloads/index.php The current version (Nov. 28, 2005) is Eclipse SDK 3.1.1 Click on the download link Y ou will get a zip file; unzip it No further “installation” is necessary (assuming your Java is installed correctly) Run the eclipse.exe file You will be asked to choose a folder for a “workspace” (mine is called workspace ); do so No further configuration is necessary

3 The Welcome screen overview tutorialssamples what’s new go to the workbench

4 The Java “perspective”

5 Projects in the workspace In Eclipse, as in BlueJ, classes are organized into projects (complete programs) Each project is kept in a folder Eclipse projects are kept in a workspace, which is just a folder containing project folders When you first start Eclipse, you will be asked to choose a workspace (folder) You can set this as default, so you use the same workspace every time You can tell Eclipse to ask you for the workspace each time it starts up

6 Starting a new project Choose File  New  Project...  Java Project and give your new project a name This will also be the name of the folder that is created in the workspace Choose File  New  Class and give your new class a name You can also check the box that asks Eclipse to generate a main method for you Start editing!

7 Compiling and running You don’t compile your program; Eclipse does that automatically as you type It also points out errors as you go along The first time you run your program, choose Run  Run As...  Java Application After that, you can just click the green circle with a triangle in it Or, you can use the drop-down list to the right of the green circle to choose a particular program to run

8 Importing projects If you have a program that you created outside Eclipse, Create a folder for it in your workspace Move your Java files to that folder Choose File  New  Project...  Java Project and type in the name of your new folder Eclipse will recognize it and ask if you want to make the folder into a new project; just click Finish

9 Tips Double-clicking a tab expands that area to the full size of the window; double-clicking it again brings it back to normal Explore the menus! There’s a lot of great stuff there

10 The End


Download ppt "15-Jul-15 Starting Eclipse Just the basics. Getting Eclipse If you Google for “Eclipse”: The first hit is the home page, The second."

Similar presentations


Ads by Google