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.

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

Importing Titles in Destiny. 1. Click My Computer or My Documents or your G drive. Save it to whichever drive you wish. 2. Click your G drive if you want.
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Downloading Audacity software Julie Collareda Adapted from Shaughnessy 2006.
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.
Lesson One: The Beginning Chapter 2: Processing Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from built-in help reference.
Rachelle Howell The University of Texas at Austin.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
Introduction to Java Lab CS110A – Lab Section 004 Instructor: Duo Wei.
PowerPoint 2002 Linking Video in Presentation and Delivering Presentation on the Road.
1 of 6 Parts of Your Notebook Below is a graphic overview of the different parts of a OneNote 2007 notebook. Microsoft ® OneNote ® 2007 notebooks are digital.
Lesson One: The Beginning
13-Jul-15 Getting Ready for Java. 2 What You Need 256 MB of RAM (512 MB or more recommended) 500 MHz Pentium or better Macintosh: must run Mac OS X, preferably.
My Workspace Profile. Using the course menu, click on Profile.
15-Jul-15 Starting Eclipse Just the basics. Getting Eclipse If you Google for “Eclipse”: The first hit is the home page, The second.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
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.
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
Getting Started with Eclipse Sandeep Pasuparthy. What’s Eclipse? It is a free software / open source platform- independent software framework for delivering.
How to Download and Install a Sharp Print Driver on a Mac.
Microsoft Windows LEARNING HOW USE AN OPERATING SYSTEM 1.
1 Mobile Computing Set Up Copyright 2015 by Janson Industries.
Using Eclipse. What is Eclipse? The Eclipse Platform is an open source IDE (Integrated Development Environment), created by IBM for developing Java programs.
1 Note: Original slides provided by and modified for Mr. Smith’s AP Computer Science A classwww.apComputerScience.com.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Download Dropbox Download should start immediately Save download file:
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
C OMP 401 E CLIPSE S ETUP Instructor: Robert Mills. John Hansen.
Setting up Eclipse Computer Organization I 1 August 2009 ©2009 McQuain Getting Eclipse for C/C++ Development Go to and click on Download.
CIS 205—Web Design & Development Dreamweaver Chapter 1.
Support.ebsco.com Download Manager Tutorial. Welcome to EBSCO’s NetLibrary Download Manager tutorial. NetLibrary offers the most comprehensive collection.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
← Select Exchange Once logged in. ↓ click Join Course Icon.
CPSC1301 Computer Science 1 Overview of Dr. Java.
C OMP 401 E CLIPSE S ETUP Graduate TA’s: Wade Gobel, Ben Newton.
Unit 1: Java and Eclipse The Eclipse Development Environment.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Setting Up Eclipse. What is Eclipse? Eclipse is a free, downloadable software that allows us to create, compile, and run JAVA programs.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
DEVS M&S Tutorial with eclipse IDE Chungman Seo
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Using This PowerPoint This PowerPoint presentation assumes your Computer Science teacher has provided you with the InstallingJava folder, which contains.
Introduction to Eclipse Al-Zahra Univerisity Advanced Programming Arash N. Kia.
C++ LANGUAGE TUTORIAL LESSON 1 –WRITING YOUR FIRST PROGRAM.
You will need Dev C++ to help you with this project. If you do not already have this programming tool on your device you can visit
1 Note: Original slides provided by and modified for Mr. Smith’s AP Computer Science A classwww.apComputerScience.com.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
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.
Loader Tutorial Set Up. Requirements Java 7 Eclipse IvyIDE plugin Git Optional: Ant Maven.
Submission of projects in Oncourse Computer Science and Computer Information IUPUI.
Photo Recovery How to Get Back your Lost Photos Easily?
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Basic Web Design UVICELL Week 4 Templates and site management Week 4 Templates and site management.
Author: Loh Jianxiong Christopher Contributions: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang, Tong Chun Kit, Tania Chattopadhyay.
Getting Eclipse for C/C++ Development
Introduction to Eclipse
Obtaining the Required Tools
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Adding Assignments and Learning Units to Your TSS Course
Setting up Eclipse Locally
Getting Eclipse for C/C++ Development
Instructions for using the Miradi Companion Reporting Tool
Presentation transcript:

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 our Java code. It has many advanced features that make it an ideal tool not only for the academic setting but also for the corporate world. We will be using only a small subset of its capabilities. To learn more about eclipse, visit their website at or take advantage of its extensive help features.

3 eclipse

4 Installing eclipse Note: You can skip this step on the school computer, since Java and eclipse are already installed on it Prerequisite for eclipse: You need the Java Runtime Environment (JRE) in order to use eclipse –More than likely the JRE is already installed on your computer –If not, click on this link and follow the instructions: Download JRE Download JRE

5 Installing eclipse (continued) Download eclipse (or copy it from Mr. Smith). Pick one of the 2 options below: –To download, follow these instructionsfollow these instructions –Or you can copy eclipse from Mr. Smith to your flash drive if you are using a Windows computer

6 Jar files Jar files are libraries that store compiled code that you can use in your own programs. At school, copy the jar files to your H: drive. One recommendation is to create a folder named H:\JarFiles and copy any needed jar files to this folder. Note: The KarelJRobot.jar file is located on my website. You can download it from my Daily Lesson Plan page. You can copy this file to H:\JarFiles for later use in programs.

7 workspace A workspace is used to store all of your Java classes. At school, create a workspace on your H: drive. Do this by creating a new folder named H:\workspace. To begin with, there should be no files in this folder workspace –Projects Packages –Classes

8 Launching eclipse To launch eclipse at school, select Start > Programs > Student Applications > eclipse To launch eclipse at home, double-click on the eclipse.exe file. When you first open eclipse, it may ask you to select the workspace. While at school, select H:\workspace. While at home, select the workspace folder you created. If a Welcome screen appears, you can either browse through some of the topics or close it to get to the main eclipse windows.

9 Projects workspace –Projects Packages –Classes A Java project contains source code and related files for building a Java program. The Java project is a folder underneath the workspace folder. To create a new Java Project: –Select File > New > Java Project –Enter the name of the project –All radio buttons should be on their top option –Remember to include the External jar file (listed under the Libraries tab > Add External JARs). Note: While at school, the jar file should be located on your H: drive –Press “Finish”.

10 Packages workspace –Projects Packages –Classes A Java package is used to organize related Java classes. It is a folder underneath the Java project folder. To create a new Java Package: –Single click on the project –Select File > New > Package –Enter the package name. –Press “Finish”.

11 Classes workspace –Projects Packages –Classes A Java class is the programming code. The source code has an extension of.java and is located in the package folder. It is a text file and can be edited with any text editor. To create a new Java class: –Single click on the package –Select File > New > Class –Enter the class name. –Press “Finish”.

12 Saving/Compiling/ Running a class workspace –Projects Packages –Classes A class can always be saved, even if there are errors. To do this, press the Save button. Saving the class will automatically try to compile it. If it is free from errors, it will be compiled successfully and a file with the extension.class will be created in thhe package folder. To run a new Java class: –Note: The class must have a main method to be run. –Make the class the active class: Double click on it in the Package explorer to make it active in the window. –Select Run > Run as > Java application

13 Proper Indentation workspace –Projects Packages –Classes It is good practice to indent code so that a human can more easily read it. The methods within a class should be indented as well as the statements within a method. Eclipse can help you with indentation: –Show your class in the active window. –Optionally, select the lines of code to be indented. Otherwise, the entire class will be corrected. –Select Source > Correct Indentation –The end result is that your code should be indented properly.

14 Copying Classes between School and Home Since there are times when you will want to continue your work at home, you will need to be able to transfer your code back and forth. This is where your flash drive becomes handy. To reduce confusion, keep the folder structure on your flash drive the same as the folder structure on H:\workspace. Use file manager to locate the Java source file (that has extension.java) within the package folder. Copy only the.java files (not the.class files) to your flash drive folder. You can then copy these files to your package folder on your destination computer. Note: After you launch eclipse, it is important to refresh the project and package. Otherwise, the new code may not be seen within eclipse: –Single click on the project and select File > Refresh (or press F5). –Single click on the package and select File > Refresh (or press F5).