Using Eclipse.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Java Integrated Development Environments: ECLIPSE Part1 Installation.
Scite Scintilla integrated text editor. Click here.
The Basic Java Tools A text editor to write Java program source code. A compiler to translate source code into bytecode. An interpreter to translate.
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
Intro.1 Computer Science 4: Java for Video Games Jam Jenkins D122 LSRC Dr. Dietolf Ramm D226 LSRC Instructors
CompSci Computer Science 4: Java for Video Games Jam Jenkins D305 LSRC Dietolf (Dee) Ramm D226 LSRC Instructor
Getting Started with Eclipse Sandeep Pasuparthy. What’s Eclipse? It is a free software / open source platform- independent software framework for delivering.
Digital Logic and State Machine Design Installing Xilinx WebPACK 12.4 CS 2204 Digital Hardware.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Using Eclipse. What is Eclipse? The Eclipse Platform is an open source IDE (Integrated Development Environment), created by IBM for developing Java programs.
Chapter 1a© copyright Janson Industries RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.
Author: Loh Jianxiong Christopher Editors: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang.
Workbench Overview Dwight Deugo Nesa Matic
© 2005 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures for Java William H. Ford William R. Topp Appendix E The EZJava.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Hello World in the Forte IDE An introduction to the Forte IDE (integrated development environment) writing the classic “Hello World” program in Java.
Unit 1: Java and Eclipse The Eclipse Development Environment.
CIS111 PC Literacy Getting Started with Windows XP.
First Venture into the Android World Chapter 1 Part 2.
THE 3M CLOUD LIBRARY AND YOUR KINDLE FIRE How to download 3M books to your Kindle Fire/HD Made possible by a grant from the Samuel P. Hunt foundation.
Using This PowerPoint This PowerPoint presentation assumes your Computer Science teacher has provided you with the InstallingJava folder, which contains.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
Author: Loh Jianxiong Christopher Contributions: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang, Tong Chun Kit, Tania Chattopadhyay.
Creating and Editing a Web Page
Introduction to Eclipse Programming with an Integrated Development Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
WS 9-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. February 27, 2009 Inventory # Workshop 9 Taylor Impact Test – “What if” Study.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Editing and Debugging Mumps with VistA and the Eclipse IDE Joel L. Ivey, Ph.D. Dept. of Veteran Affairs OI&T, Veterans Health IT Infrastructure & Security.
Author: Loh Jianxiong Christopher Contributions: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang, Tong Chun Kit, Tania Chattopadhyay.
Chapter 1a© copyright Janson Industries RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.
Introducing IBM Rational Software Architect
Dive Into® Visual Basic 2010 Express
Appendix A Barb Ericson Georgia Institute of Technology May 2006
The eclipse IDE IDE = “Integrated Development Environment”
Getting Started with Application Software
Getting Eclipse for C/C++ Development
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Writing simple Java Web Services using Eclipse
Chapter 2 – Introduction to the Visual Studio .NET IDE
Eclipse Navigation & Usage.
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
T_C_N_L_G_ E D I D I E O Y O H I E B J I R E A A W.
Microsoft Windows 2000 Professional
Lesson Four: Building Custom Patient Lists
Windows Internet Explorer 7-Illustrated Essentials
CIS16 Application Development Programming with Visual Basic
How to Run a Java Program
Using JDeveloper.
Java External Libraries & Case Study
Learning about Taxes with Intuit ProFile
Computer Skills (1) Internet Explorer.
Download and Installation of code::blocks
Software Setup & Validation
Using screens and adding two numbers - addda.cbl
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Getting Eclipse for C/C++ Development
Java Looking at our first console application in Eclipse
Working with Libraries
Workshop for Programming And Systems Management Teachers
Presentation transcript:

Using Eclipse

What is Eclipse? The Eclipse Platform is an open source IDE (Integrated Development Environment), created by IBM for developing Java programs. Eclipse is now maintained by the Eclipse Foundation, not IBM. A free copy can be downloaded at: http://www.eclipse.org/

IDE Workbench Eclipse is based on a flexible “WorkBench” concept. The workbench is where all the IDE features come together in a common set of icons, menus, and views.

Eclipse Workbench Source Code Editor – where you enter the Java code for your program Package Explorer – where your Project, Packages and Classes are created Console – where your program output is displayed and inputs are accepted

Projects A Project enables you to operate in the Eclipse WorkBench Before you can create any Java programs, you must first create a Project

Creating Your Project First - Select: File>New>Project (Or Click the Java Project Icon) From the New Project dialog Select: Java> Java Project Click: Next

Creating Your Project (cont’d) Next: Enter PACE as the Project Name Click Finish

Packages Packages help you organize your Java source code Packages are like folders for your Java code Before we can enter our Java code, we have to create a package to hold our code

Create Your Package Option 1: Option 2: Option 3: File> New> Package Option 2: Right Click on the PACE Project Name Select: New > Package Option 3: Click the Package ICON in the toolbar just below the menubar

Create Your Package (cont’d) Enter a package name that represents your program Start with a lowercase No spaces or special symbols If you use multiple words, capitalize each additional word Put Pkg at the end of your package name Example: helloWorldPkg Click Finish when done

Classes Classes are where the work of your program is done Typically, you’ll have a separate class for each logical component of your program Example: a Climate Control system might have classes for: Thermometer Thermostat Cooling system Heating system For most of our early programs we will only create one class for the main program For our final Spring project, we will create a program with multiple classes

Creating a Class Option 1: Option 2: Option 3: Click on your package name Select: File>New> Class Option 2: Right Click on your package name Select: New > Class Option 3: Click the “New Class” ICON in the toolbar just below the menubar

Creating a Class Enter a Class Name that represents your program Start with an uppercase No spaces or special symbols If you use multiple words, capitalize each additional word Example: HelloWorld Select the checkbox next to “public static void main” Click Finish when done

Saving your code Notice the top of your editor tab where your class name is shown. The “*”indicates it has not been saved. Press CTRL-S to save your file. CTRL-S saves your file and compiles it in one step.

Running your Program From the menubar, select: Run> Run As> Java Application. After the first time, you can simply click the Run icon in the toolbar just below the menubar to run it again

Check your Output in the Console Console – where your program output is displayed and inputs are accepted

Exporting your Java Code Export enables you to save your Java code to a file in the filesystem In industry, typically you would export your code to a JAVA Archive (JAR) file This enables you to then distribute your code, along with all resources and images, to other users In our class, we will use a standard archive (ZIP) file

Exporting your Java Code Option 1: Click on your package name Select: File > Export … Option 2: Right Click on your package name Select: Export …

Exporting your Java Code (Cont’d) In the Export window, under General, select Archive File Click Next

Exporting your Java Code (Cont’d) Be sure the checkboxes for your class files are selected as well as the checkbox for your package Click Browse and locate the entry for your thumbdrive in the resulting window, then open the thumbdrive and enter a filename. When you click Open, the drive and filename will appear in this window Click Finish when done

Exporting your Java Code (Cont’d) When you clicked Browse in the prior window, the window below appears and will enable you to locate your Removable thumbdrive. Double-click the thumbdrive icon, then enter a File name in which to export your class Click Open when done You will return to the prior window

Importing your Java Code Import enables you to retrieve your prior work from your thumbdrive and load it into Eclipse First, create a PACE Project using the procedures previously reviewed

Importing your Java Code (Cont’d) Option 1: Click on the PACE Project name Select: File > Import … Option 2: Right Click on the PACE Project name Select: Import …

Importing your Java Code (Cont’d) Next, under the General category, click Archive File Click Next

Importing your Java Code (Cont’d) Click Browse to locate the file you previously exported to your Thumbdrive Make sure your code will be imported into the PACE project folder Click Finish when done

Importing your Java Code (cont’d) After importing your package, you will typically see a red X in the left margin indicating a problem with the package definition Click the red X In the resulting window that appears, choose the 1st option - Move <classname>.java to <packageName>