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
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.
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.
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.
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
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.
PHY281Introduction to JavaSlide 1 Introduction to Java In this section we will learn how how to use Java and write our first Java Applet:  The Java Development.
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
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.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
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.
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.
How to Download and Install a Sharp Print Driver on a Mac.
Microsoft Windows LEARNING HOW USE AN OPERATING SYSTEM 1.
Eclipse Overview Introduction to Web Programming Kirkwood Continuing Education Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
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.
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.
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.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
CPSC1301 Computer Science 1 Overview of Dr. Java.
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.
Installing JDK Vijayan Sugumaran Department of DIS Oakland University.
Download and Install: 1.Java Development Kit (JDK) bin/INTERSHOP.enfinity/WFS/CDS- CDS_Developer-Site/en_US/- /USD/ViewProductDetail-Start?ProductRef=jdk-
Intro to CS ACO 101 Lab Rat. Academic Integrity What does that mean in programming? Log into Blackboard and take the test titled “Applied Computing Course.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
Using This PowerPoint This PowerPoint presentation assumes your Computer Science teacher has provided you with the InstallingJava folder, which contains.
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.
Software Design– Unit Testing SIMPLE PRIMER ON Junit Junit is a free simple library that is added to Eclipse to all automated unit tests. The first step,
Photo Recovery How to Get Back your Lost Photos Easily?
Today Javadoc. Packages and static import. Viewing API source code. Upcoming Topics: –protected access modifier –Using the debugger in Eclipse –JUnit testing.
Troubleshooting Dashhawk Issues. Here's what you have to do to have the DashHawk run properly Go to the ACTUAL PROGRAM file (not the short cut)
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
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
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Using Eclipse.
Getting Eclipse for C/C++ Development
Working with Libraries
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 Installing eclipse Note: You can skip this step on the school computer, since Java and eclipse are already installed on it Prerequisite for eclipse: Download the Java Development Kit (JDK) if you don’t already have it – –Select JDK 6 Update 21 (listed under Java Platform, Standard Edition). Click on “Download JDK” button.

4 Installing eclipse (continued) Download eclipse (or copy it from the school’s S: drive). Pick one of the 2 options below: –To download: Select Eclipse Classic (there is an option for “Windows” to the right of this option – select it if you have Windows) –Or you can copy eclipse from the school’s shared drive: Copy folder S:\StudentShare\AP Computer Science\Eclipse to your flash drive Copy the entire folder to your home PC

5 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.

6 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

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

8 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”.

9 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”.

10 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”.

11 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

12 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.

13 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).