Introduction to Eclipse

From CompSciWiki
Revision as of 01:29, 4 April 2012 by HowardC (Talk | contribs)

Jump to: navigation, search

COMP 1010 Home > Back to Extra Labs

Introduction

In this lab, we will introduce you to using Eclipse to code your Java program in. There will be a general overview on how to install Java and Eclipse on Windows and Mac. Basic instructions on how to set up your assignments/projects in Eclipse and debugging tools that you will definitely find useful in Comp 1010 and later courses.

Installation

This installation guide will provide you with information on where to download the files and installation order. We assume that you have general knowledge on how to download/install software from the internet, so this guide will not go into step by step detail on what you need to do to install Java and Eclipse.

Installing JDK

Note: Java is already installed on Mac OS X. However, you may still want to update it to the most current version available.

For Windows user, if you currently do not have JDK ("Java SE Development Kit (JDK) 6 Update 31"), you can download from here.

Installing Eclipse

Note: Install Java first, before installing Eclipse.

  1. For Windows and Mac OS X users, Eclipse software download can be found here.
  2. Download the most current version of Eclipse Classic for your operating system.
  3. Once you have extracted the files from the download, you can find the Eclipse application within the folder. You can always come back and access the file from this location or create a short-cut and have it somewhere more accessible to you.

Running a New Program

  1. Double-click on the Eclipse application and you will receive a Eclipse loading screen. Once Eclipse is done loading, you will be asked to select a workspace. This is where the projects (the files you will be working on) will stored. If you wish to change the location, click on Browse....
Workspace eclipse.jpg

Basics of Debugging