Unit 1: Java and Eclipse The Eclipse Development Environment.

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

1) Terms to Know 2) Starting an Office 97 Application 8) Finding a missing file 7)File Managment 4) Utilizing the Right Mouse Button 6) Using Help 3)
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.
Access Lesson 2 Creating a Database
How to Create a Java program CS115 Fall George Koutsogiannakis.
Screen guidelines For data entry. Screen Layout for Data Entry Identify screen (name and purpose). Keep number of screens to a minimum. Ensure that all.
Software Development. Chapter 3 – Your first Windows 8 app.
Microsoft ® Office SharePoint ® Server 2007 Training SharePoint calendars I: Make the most of your team calendar Bellwood-Antis School District presents:
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Android 4: Creating Contents Kirk Scott 1. Outline 4.1 Planning Contents 4.2 GIMP and Free Sound Recorder 4.3 Using FlashCardMaker to Create an XML File.
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
How to Upload Your File to Office Live Workspace Ed McCorduck CPN 100/101: Writing Studies I/II on Computer SUNY Cortland
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.
MagicInfo Pro Server Software All control, content, and scheduling is performed within the MagicInfo Pro Server software previously installed. Before.
Getting Started with Expression Web 3
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
Unit 1: Java Introduction and Eclipse Kirk Scott.
Microsoft ® Word 2010 Core Skills Lesson 1: Getting Started Courseware #: 3240 Microsoft Office Word 2010.
Using Eclipse. What is Eclipse? The Eclipse Platform is an open source IDE (Integrated Development Environment), created by IBM for developing Java programs.
Using the FOCUS Web Site Teacher’s Desk. Topics Covered in this Presentation n Accessing the FOCUS Web site n Importing and Creating Classes n Adding.
Website Development with Dreamweaver
Mail merge I: Use mail merge for mass mailings Perform a complete mail merge Now you’ll walk through the process of performing a mail merge by using the.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
A1 Visual C++.NET Intro Programming in C++ Computer Science Dept Va Tech August, 2002 © Barnette ND & McQuain WD 1 Quick Introduction The following.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Copyright © Curt Hill Java Looking at our first console application in Eclipse.
Teacher’s Assessment Assistant Worksheet Builder Starting the Program
Active-HDL Interfaces Debugging C Code Course 10.
SVN in Eclipse Presented by David Eisler 10/09/2014.
Downloading and Installing Autodesk Revit 2016
1 NORMA Lab. 7 Generating Reports More Display Options File: NORMA_Lab6.ppt. Author: T. Halpin. Last updated: 2009 June 9.
Android 3: Exploring Apps and the Development Environment Kirk Scott 1.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Introduction to Android (Part.
9/2/ CS171 -Math & Computer Science Department at Emory University.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Using Advanced Options Lesson 14 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft Word 2013.
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.
Introduction to Eclipse Programming with an Integrated Development Environment.
Building the CarryDrop simulation in Eclipse Creating a new project with existing code from John Murphy’s RePast tutorial.
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.
TELEPORT PRO Website to Hard Drive Completely download a website, enabling you to “Browse Offline” at much greater speeds than if you were to browse the.
This screen may be skipped altogether if the user chooses a report from the server and clicks Ad Hoc or Edit or whatever. Also, the next screen would ordinarily.
Perform a complete mail merge Lesson 14 By the end of this lesson you will be able to complete the following: Use the Mail Merge Wizard to perform a basic.
Author: Loh Jianxiong Christopher Contributions: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang, Tong Chun Kit, Tania Chattopadhyay.
DEVRY CIS 170 C I L AB 1 OF 7 G ETTING S TARTED Check this A+ tutorial guideline at
Android 3: Exploring Apps and the Development Environment
Getting an account with WordPress.com
The eclipse IDE IDE = “Integrated Development Environment”
Eclipse Navigation & Usage.
An Introduction to Computers and Visual Basic
Creating Database Tables
Windows Internet Explorer 7-Illustrated Essentials
How to Run a Java Program
1. Open Visual Studio 2008.
How to Run a Java Program
An Introduction to Computers and Visual Basic
Using Eclipse.
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Working with Libraries
Executive Reports, Instructions and Documentation
Presentation transcript:

Unit 1: Java and Eclipse The Eclipse Development Environment

These notes are based on the assumption that you will have available to you a development machine that already has the Eclipse environment installed on it. More details on installing the environment are given later, assuming that you might want to set this up at home. For the time being you just need to be familiar with several things in order to begin using Eclipse.

When you start Eclipse it will prompt you regarding the workspace that you want to use. This is where your programs will be stored. Unless directed otherwise, just accept the default. In simple terms, when Eclipse is up and running, the screen will be divided into 4 areas:

Across the top: This is the menu (no surprises). There are many, many menu options. Initially we will just be interested in a few. Down the left: This is the Explorer. In effect, this shows the contents of your workspace. In other words, it shows folders containing the programs you’ve written. In the center: This is the editor. This is where you can see and type in the contents of programs. Below the editor: There are several tabbed items here. The tab that will be of initial interest is the Console. This is where program output will be shown.

The process of loading and running a program will be described shortly. In order to illustrate the areas mentioned above, a screenshot of the first program open in the editor, after having run, is shown below:

1. In Eclipse, each program you write will be saved as a project in a folder of its own. 2. At the top of every program there will be a line of code of this form: public class Name_of_program

The name of the file that the program is saved in has to agree exactly with the name that appears in this line of code within the program. The first letter of the name is capitalized within the program, and the first letter of the name of the file also has to be capitalized. In other words, in order to be valid, a program that started with the line of code given above would have to be saved with this name: Name_of_program

3. Java is completely case sensitive. Microsoft Windows is not fully case sensitive. If you are accustomed to working in Windows and naming files there, this can lead to problems. You can largely avoid problems if you only work with your program code through Eclipse.

4. There is one last bit of information that might be of interest. If you were curious you could find the workspace folder on your machine and find its /src subfolder. This is where your Java files are stored. If you used Windows to look at their properties, you should find that they are in fact Java files.

Depending on how your system is set up, you would find that the file names actually have an extension,.java. Because the Eclipse environment is taking care of the details, in practice you shouldn't have to worry about these facts. They are just presented for your information.

Now the process of using Eclipse to load and run your first example program will be explained. This is the process that resulted in the screenshot shown above. 1. Having started Eclipse and accepted the workspace take the following menu option: File, New, Java Project. The resulting dialog is shown below. Enter a Project Name value of MyFirstJavaProject and accept the default values for all of the other fields as given.

After filling in the Project Name, the Finish button will become active. After you click it, the MyFirstJavaProject folder should appear in the Explorer on the left hand side of the Eclipse interface. 2. Having successfully created the project, take the following menu option: File, New, Class. The resulting New Java Class dialog is shown below. Enter a Name for the class, for example, FirstProg. Accept the default values for all of the other fields as given.

After filling in the class Name, the Finish button will become active. After you click it, the FirstProg file will appear under the MyFirstJavaProject folder in the Explorer and the editor screen of Eclipse will show the empty outline of the FirstProg class, as shown in the screenshot below.

3. On the Web site for these notes in the Unit 1 folder there is a file named FirstProg.java. If you open it using the browser, this is what you’ll see: public class FirstProg { public static void main(String[] args) { System.println("Hello World"); }

Copy this and paste it into the Eclipse editor, replacing the blank template for the FirstProg class. If this was successful, there should be no red marks on any line in the code. Eclipse automatically compiles any code placed in the editor, so the lack of red marks means that the code compiled successfully and is ready to run.

4. Having come this far, take the following menu option: Run, Run. If there are no runtime problems, the program will generate output, namely the message “Hello World”, and this will be shown at the bottom of the Eclipse interface. The screenshot of this successful sequence of events is repeated below.

Section Summary Java program files have to match the class name within them. Java is fully case sensitive. The Eclipse environment automates the creation of projects and program files, allowing programs to be compiled and run

Vocabulary Project. Capitalized. Case sensitive. Extension.