An Introduction to Eclipse: Quick Guide. Part 1: Getting Started with Eclipse Part 2: Working with Eclipse Useful Online Guides

Similar documents
Using Eclipse Europa - A Tutorial

Introduction to Eclipse

Just Enough Eclipse What is Eclipse(TM)? Why is it important? What is this tutorial about?

Getting Started with Eclipse/Java

What s NetBeans? Like Eclipse:

PART 1. Eclipse IDE Tutorial. 1. What is Eclipse? Eclipse Java IDE

Prerequisites for Eclipse

Using Eclipse for Java. Using Eclipse for Java 1 / 1

Getting Started with Eclipse for Java

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1

Eclipse Environment Setup

Manual Eclipse CDT Mac OS Snow Leopard

Eclipse Setup. Opening Eclipse. Setting Up Eclipse for CS15

Table of Contents. 1 Introduction Downloads Eclipse SDK Installation Eclipse Workspace Eclipse Preferences...

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below.

S D K Q U I C K S T A R T

1. The Apache Derby database

Getting Started with Eclipse for Java

Laboratory Assignment #3 Eclipse CDT

EMC Documentum Composer

CS 201 Software Development Methods Spring Tutorial #1. Eclipse

Index. Symbols. /**, symbol, 73 >> symbol, 21

A quick guide to installing the SpesCoin Wallet for Windows and MacOS users SPESCOIN WALLET. Installation Guide

Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat

In order to support developers, there needs to be a number of tools available which may be involved in the ultimate solution.

1. The Apache Derby database

GETTING STARTED WITH ECLIPSE Caitrin Armstrong

1. Go to the URL Click on JDK download option

Installing the Amzi Prolog Plugin

CSCI 201 Lab 1 Environment Setup

In this lab, you will build and execute a simple message flow. A message flow is like a program but is developed using a visual paradigm.

Prototype User Guide Public Release Version 1

Creating a new CDC policy using the Database Administration Console

POOSL IDE Installation Manual

For live Java EE training, please see training courses at

FX SERIES. Programmer s Guide. Embedded SDK. MN000540A01 Rev. A

At the shell prompt, enter idlde

COMP 110/401 APPENDIX: INSTALLING AND USING ECLIPSE. Instructor: Prasun Dewan (FB 150,

Creating and Using Macro Commands

USER GUIDE. MADCAP FLARE 2018 r2. Eclipse Help

Application Note: AN00194 Getting Started with VCD Tracing in xtimecomposer

What is Eclipse? A free copy can be downloaded at:

Your password is: firstpw

We are built to make mistakes, coded for error. Lewis Thomas

Chapter 1 GETTING STARTED. SYS-ED/ Computer Education Techniques, Inc.

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer

Demo Package Guide. OpenL Tablets BRMS Release 5.19

IBM WebSphere Java Batch Lab

The Road to CCSv4. Status Update

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

Abstract. Avaya Solution & Interoperability Test Lab

Test/Debug Guide. Reference Pages. Test/Debug Guide. Site Map Index

CHAPTER 6. Java Project Configuration

Setup and Getting Startedt Customized Java EE Training:

Using Command Modeler

News in RSA-RTE 10.2 updated for sprint Mattias Mohlin, May 2018

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java)

WFCE - Build and deployment. WFCE - Deployment to Installed Polarion. WFCE - Execution from Workspace. WFCE - Configuration.

Java with Eclipse: Setup & Getting Started

Hadoop Tutorial. General Instructions

INTRODUCTION... 3 INSTALLATION GUIDE FOR ECLIPSE 3.1 AND INSTALLATION GUIDE FOR ECLIPSE 3.3 TO

IMPLEMENTING SCL PROGRAMS. Using Codeblocks

WRITING CONSOLE APPLICATIONS IN C

An Extensible Open Source AADL Tool Environment (OSATE)

Javac and Eclipse tutorial

EMC Documentum Composer

David Scuse Department of Computer Science University of Manitoba. Eclipse 3.1

Introduction to Eclipse

i2b2 Workbench Developer s Guide: Eclipse Neon & i2b2 Source Code

A QUICK OVERVIEW OF THE OMNeT++ IDE

EMC Documentum Composer

Mitglied der Helmholtz-Gemeinschaft. Eclipse Parallel Tools Platform (PTP)

IBM. Developing with IBM Rational Application Developer for WebSphere Software V6

JPA - INSTALLATION. Java version "1.7.0_60" Java TM SE Run Time Environment build b19

CS 315 Software Design Homework 3 Preconditions, Postconditions, Invariants Due: Sept. 29, 11:30 PM

Using Maven will help you to save time importing external libraries to the project that will be needed during this lab.

Elixir Repertoire supports any Java SE version 6.x Runtime Environment (JRE) or later compliant platforms such as the following:

Elixir Repertoire Designer

Leverage Rational Application Developer v8 to develop OSGi application and test with Websphere Application Server v8

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003

Configure Eclipse with Selenium Webdriver

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2005

Infor LN Studio Application Development Guide

BASICS OF THE RENESAS SYNERGY PLATFORM

1.00/1.001 HowTo: Install Eclipse

CVS. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 21

form layout - we will demonstrate how to add your own custom form extensions in to form layout

After you create a new project you should be able to access the below windows:

DITAworks Guide for Authors

Module 3: Working with C/C++

RTMS - Software Setup

Com S 227 Assignment Submission HOWTO

JUCE TUTORIALS. INTRO methodology how to create a GUI APP and how to create a Plugin.

Assignment 1. Application Development

VI-CENTER EXTENDED ENTERPRISE EDITION GETTING STARTED GUIDE. Version: 4.5

User Guide. Introduction. Requirements. Installing and Configuring. C Interface for NI myrio

Series 40 6th Edition SDK, Feature Pack 1 Installation Guide

What s new in IBM Operational Decision Manager 8.9 Standard Edition

News in RSA-RTE 10.2 updated for sprint Mattias Mohlin, January 2018

The PALOMA Eclipse Plug-in User Manual

Transcription:

An Introduction to Eclipse: Quick Guide Part 1: Getting Started with Eclipse Part 2: Working with Eclipse Useful Online Guides 1 1

Part 1: Getting Started with Eclipse Installation & Running The User Interface Creating a Project Creating a Class Running a Project Navigating Projects 2 2

Installation and Running Check java is present and up-to-date: java -version Download from http://www.java.com/en/download/manual.jsp Eclipse Enterprise Edition: http://www.eclipse.org/downloads/ Unzip and install (win: http://www.7-zip.org/ if needed) Run: windows: eclipse.exe linux / os x: eclipse application in the lab: Root > opt > eclipse-3.7 > eclipse 3 3

The User Interface Current Perspective Projects & Classes Editor Methods & Attributes Output 4 4

[right-click] Creating a New Project 1 2 3 4 5 5

Creating a Class 1 2 [right-click] right-click on the location / package where you want to place this class can auto-generate main method stub 6 6

Running a Project In Eclipse: From command line: Navigate to ProjectName/bin folder to execute If your project is packaged then from bin use java packagename/ classname to execute 7 7

Navigating Projects Selecting an item in one view brings it into focus in the other views 8 8

Part 2: Working with Eclipse Creating Packages Debugging Refactoring Creating jars Other Useful Features Automatic Code Generation Importing System Classes into Projects Importing System and User Libraries 9 9

Creating Packages 1 By convention these are named in mypackage style, just like classes 2 If you move classes between packages Eclipse will automatically fix references in other classes, and add import statements where needed 10 10

Automatic Code Generation Eclipse can automatically generate constructors and some frequently used methods With a class open in the Editor view, use the Source menu item as apt Hover on a problem notification to see the Quick Fix options: select one, then [control+enter] to invoke it can fix import declarations and most simple (non runtime) coding errors 11 11

Importing System Classes Problem: Types ArrayList and Color are not recognised Solution: Automatically import the classes 12 12

Importing Libraries 1 This adds a JRE System Library 2 3 For other libraries we select Add External Jars then navigate as apt 13 13

Debugging Red warnings are items that might cause the program to fail to run depends if the code is reachable Yellow warnings are advisory: attributes, methods and imports that are never used non-generic Collection types in use: such as ArrayList versus ArrayList<Integer> Hover on the warning for info, use Quick-Fix where apt Runtime errors can be traced from Console to the guilty line of code in Editor: click on the error to see the line in focus Visit http://www.ibm.com/developerworks/library/os-ecbug/ for a guide to the more advanced inbuilt debugging features 14 14

Refactoring Eclipse can rename methods and attributes across the whole scope of a project [double-click] on a method or attribute name > Refactor > Rename Optionally, old methods can be retained and deprecated: 15 15

Creating Jars JAR which includes source code (say for sharing work) [right-click] on project Export > Java > JAR File > Next select Export java source files and resources Name the JAR Runnable JAR (source code omitted, but includes externally referenced libraries) [right-click] on project Export > Java > Runnable JAR File > Next Select Launch Configuration: Extract External Files Name the JAR About Launch Configuration: Extract: external JARs will be extracted and the class files put/mixed together with your class files Package: external JARs will remain as JARs in the root of your archive 16 16

Other Useful Features To highlight the scope of { } parentheses, [double-click] just after the opening parenthesis Add // TODO comments to your code to manage work-inprogress View the TODO list using the Task view, NOT the Task List view Click on an item to bring it to focus in other views File Handling: the default working directory for files is the top level directory for the project, NOT the (src) directory containing the source code 17 17

Useful Online Guides (which also form the reference materials for this guide) Lars Vogel s Eclipse IDE Tutorial http://www.vogella.de/articles/eclipse/article.html David Scuse s guide to Eclipse 3.1 http://www.cs.umanitoba.ca/~eclipse/eclipse3-1.pdf Debugging with the Eclipse Platform http://www.ibm.com/developerworks/library/os-ecbug/ Eclipse Current Release User Guide http://help.eclipse.org/indigo/index.jsp Book/eBook: Eclipse IDE Pocket Guide by Ed Burnette (O Reilly Publishing) 18 18