1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore 29 Organising Code: Packages & Archives.

Slides:



Advertisements
Similar presentations
1 Packages: Putting Classes Together. 2 Introduction The main feature of OOP is its ability to support the reuse of code: Extending the classes (via inheritance)
Advertisements

Introduction to Java 2 Programming Lecture 4 Writing Java Applications, Java Development Tools.
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore 22 GUI Programming I.
1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore G54PRG Programming Lecture 1 Amadeo Ascó 3 Java Programming Language.
JSP and web applications
Introduction to Maven 2.0 An open source build tool for Enterprise Java projects Mahen Goonewardene.
Processing and Java David Meredith
In Review JAVA C++ GUIs - Windows Webopedia.com.
Developing in CAS. Why? As distributed you edit CAS 3 with Eclipse and build with Maven 2 – Best Practice for Release Engineering – Difficult edit-debug.
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.
The iiuf Java Package Part I Simon Schubiger and Oliver Hitz DIUF, University of Fribourg.
JAVA PROGRAMING LANGUAGE. Content of Java 2 SDK  Development Tools (In the bin subdirectory.) Tools and utilities that will help you develop, execute,
Object-Oriented Enterprise Application Development Javadoc Last Updated: 06/30/2001.
CS 351 Introduction Spring 2012 Modeling and Simulation Technologies Dr. Jim Holten.
Views Dwight Deugo Nesa Matic
OCT Information Systems Management 1 Lecture 2A Introduction to ANT Written by James Duncan Davidson. Like GNU Make but specifically for Java. Good.
Deploying Java applications as JAR files SE-2030 Dr. Mark L. Hornick 1 How to package an application so that you can run it outside of Eclipse.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
Chapter 3 Navigating a Project Goals & Objectives 1.Get familiar with the navigation of the project. How is everything structured? What settings can you.
Project Source Code Structure and Build Process ● Remember consistency matters as source code structure, build process, and release processes are all intertwined.
CSCI 115 Computer Programming Overview. Computer Software System Software –Operating systems –Utility programs –Language compilers Application Software.
1 Development Environments AUBG, COS dept Lecture Title: Dev Env: Eclipse (Extract from Syllabus) Reference:
Drexel University Software Engineering Research Group 1 Eclipse for SE101.
Eclipse Tutorial Barrett Summer Scholars 2011 Sustainable Engineering: Learning to Engineer Truly Green Products.
CPRG 215 Introduction to Object-Oriented Programming with Java Module 1-Introduction to Java Topic 1.2 Getting the Tools and Setting Up the Development.
Chapter 13. Applets and HTML HTML Applets Computer Programming with JAVA.
Creating and running a Java program. Eclipse Interactive Development Environment (IDE)  Eclipse is an Interactive Development Environment (IDE) for Java.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
EE2E1. JAVA Programming Lecture 3 Java Programs and Packages.
Components Components are specialized self contained Software entities that can be replicated, Customized and inserted into applications. Components come.
DEVS M&S Tutorial with eclipse IDE Chungman Seo
Applets Yong Choi School of Business CSU, Bakersfield.
RADE Project Generator. Outline Introduction Project Types Options Generator Files and Layout Source Control (Video 3 Min) Templates and Nifty Tools.
 Installation of Android Development Environment  Creating the App with OpenGL ES API  Running the App on Emulator Android App Development.
CIS 280 Object-Oriented Programming Professor Zavodnik.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
Building Packages BCIS 3680 Enterprise Programming.
Slides prepared by Rose Williams, Binghamton University ICS201 Lecture 15 : Swing III King Fahd University of Petroleum & Minerals College of Computer.
Building the CarryDrop simulation in Eclipse Creating a new project with existing code from John Murphy’s RePast tutorial.
CSCI 115 Computer Programming Overview. Computer Software System Software –Operating systems –Utility programs –Language compilers Application Software.
(1) Introduction to Robocode Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences University of Hawaii Honolulu.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
Know Your Java. Java is special Java source code Byte code/ native code Object code on windows Object code on Dos Object code on Lynux.
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,
PAPYRUS Tutorial CSOS 손 태 용.
Java IDE Dwight Deugo Nesa Matic
Software Development COMP220 Seb Coope Ant: Structured Build These slides are mainly based on “Java Development with Ant” - E. Hatcher & S.Loughran. Manning.
Java Packages - allow you to group classes as a collection Standard Java library has packages: java.lang and java.util … Also hierarchical: java and javax.
ECLIPSE IDE & PACKAGES. ECLIPSE IDE Setting up workspace Making a new project How to make classes Packages (will explain more about this) Useful short-cuts.
CS-140 Dick Steflik Lecture 3. Java C++ Interpreted optimized for the internet Runs on virtual ized machine Derived from C++ Good object model Widely.
Java SWING and Model View Controller (MVC)
Download TPL.zip to some directory
Java Import Statement Copyright © Curt Hill
Installing and running the local check projects in Eclipse
Swing & the JFC – Advanced Java GUI
Software Development Jar Files for Applications and Libraries
25 GUI Example.
5 Variables, Data Types.
Java External Libraries & Case Study
Interfaces, Classes & Objects
PACKAGES.
Eclipse Basic Concepts
Building a program (Java libraries) - an example
F II 1. Background Objectives
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Joel Adams and Jeremy Frens Calvin College
Working with Libraries
TA: Nouf Al-Harbi NoufNaief.net :::
TA: Nouf Al-Harbi NoufNaief.net :::
Presentation transcript:

1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore 29 Organising Code: Packages & Archives

2 Amadeo Ascó, Adam Moore Previously Panels & Layout Manager – Positioning Elements – Layout Managers – Using Layout Managers

3 Amadeo Ascó, Adam Moore Overview Packages Packages Views

4 Amadeo Ascó, Adam Moore Packages Projects in Java are structured in packages Packages are directories with subdirectories With.java files (development) With.class file (in.jar file) src com aaz sample0 src\com\aaz\sample0 Windows Eclipse view Java src.com.aaz.sample0 Windows view

5 Amadeo Ascó, Adam Moore Packages Name of package meaningful Java classes maybe grouped into "Packages Packages have hierarchical names The core class libraries are all in packages that start with java The GUI classes are in the packages and sub- packages of java.awt and java.swing

6 Amadeo Ascó, Adam Moore Packages Consider our Switch project – We have the project itself com.. – The class(es) to start the application would be in the base package for the project com.. – There are classes specific to generate the GUI for this project so added them into their own package, e.g. gui com...gui – Other general useful classes could be added in a general package com..util

7 Amadeo Ascó, Adam Moore Packages Views The application

8 Amadeo Ascó, Adam Moore Packages Views Eclipse Windows Explorer

9 Amadeo Ascó, Adam Moore Packages Views If you open the bin directory then you will get the same structure than in the src directory – bin directory for.class files – compiled files – src directory for.java files – code files