CSC Java Programming, Spring, 2009

Slides:



Advertisements
Similar presentations
Question examples. Session 1 Objectives Why certify? Positioning of the non-technical version What is Java? Key advantages of Java Java Applications vs.
Advertisements

1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore G54PRG Programming Lecture 1 Amadeo Ascó 3 Java Programming Language.
In Review JAVA C++ GUIs - Windows Webopedia.com.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Object Orientated Programming
1 Chapter 3 Programs and Packages. 2 Java Virtual Machine (JVM) Java programs execute on the JVM. The JVM is a virtual rather than a physical machine,
Lab 1 Instructor: Jolanta Soltis.
Introduction to Programming with Java, for Beginners Machine vs. Programming Language Intro to Java Edit-Compile-Run Program Process.
JAVA: An Introduction to Problem Solving & Programming, 6 th Ed. By Walter Savitch ISBN © 2012 Pearson Education, Inc., Upper Saddle River,
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
Java PAL.  Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Intro to Servlets Lec 26. Web-Based Enterprise Applications in Java Figure shows a simplified view of one application and its layers.
Introduction to Java Presented by Daniel Rosenthal Friday, November 16 th, 2007.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
Java Programming, 2E Introductory Concepts and Techniques Chapter 2 Creating a Java Application and Applet.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
S.W. Ma/CIM/LWL41211/2 Prog. IIA Page 1 HKIVE (Lee Wai Lee Campus) Department of CIM Course : Year 2 Module : Programming IIA Textbook : Introduction.
Servlets Environment Setup. Agenda:  Setting up Java Development Kit  Setting up Web Server: Tomcat  Setting up CLASSPATH.
Glink: GCOS e-business in an application server architecture Summit 2000, Jim Gallagher.
CSC Java Programming, Spring, 2014 Welcome to Java Programming. Tuesday, January 21, 2014.
 2005 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
Introduction to J2EE Architecture Portions by Kunal Mehta.
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
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.
CSC Java Programming, Fall, 2008 Week 2: Java Data Types, Control Constructs, and their C++ counterparts, September 4.
JAVA Java is a programming language and computing platform first released by Sun Microsystems in It was first developed by James Gosling at Sun Microsystems,
1.8History of Java Java –Based on C and C++ –Originally developed in early 1991 for intelligent consumer electronic devices Market did not develop, project.
Java Applets. 2 Introduction to Java Applet Programs  Applications are stand alone programs executed with Java interpreter executed with Java interpreter.
Object Oriented Programming Examples: C++, Java Advantages: 1. reusibility of code 2. ability to adapt (extend) previously written code.
Jaeki Song ISQS6337 JAVA Lecture 03 Introduction to Java -The First Java Application-
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
POS 406 Java Technology And Beginning Java Code
COP 3330 Notes 1/12. Today's topics Downloading Java and Eclipse Hello World Basic control structures Basic I/O Strings.
The Joy of Programming (also known as) Introduction to Object-Oriented Programming.
Introduction to Java Programming. Introduction Course Objectives Organization of the Book.
Session 1 Introduction to Java. Objectives Java Simplified / Session 1 / 2 of 32 Explain the history of Java Explain Java in brief List the types of Java.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
14 June 2004System-wide Services: User InterfaceRich Moeser 1 EVLA Overall Software Design Final Internal Review System-wide Services: User Interface.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
22-July-2002cse142-13B-Development © 2002 University of Washington1 Development Tools CSE 142, Summer 2002 Computer Programming 1
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
1 Applets are small applications that are accessed on an Internet server, transported over the internet, automatically installed and run as a part of web.
Application Architecture Using Java Hong Li. Introduction Developed by a team led by James Gosling at Sun Microsystem. Originally called Oak, designed.
CSC 243 – Java Programming, Spring, 2014 April 22, 2014 Week 13, JApplets.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Creating a Java Application and Applet
CSC Java Programming, Spring, 2010 Week 2: Java Data Types, Control Constructs, and their C++ counterparts.
Glink for Java: applet, application and an API for integrating access to Bull, IBM, UNIX and Minitel systems with your Java based e-business applications.
CSC Java Programming, Fall, 2008 August 28, 2008, class 2 Tuesday, September 2 uses Monday’s schedule!
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 15: Java Basics Fundamentals of Web Programming.
Introduction to Java Programming, 4E Y. Daniel Liang.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Applications Active Web Documents Active Web Documents.
Part II Software When developing software there are several particularities to be aware of: Java is widespread used because of the platform independence.
Introduction to Computers, the Internet and the World Wide Web
CSC Java Programming, Spring, 2010
Java programming lecture one
Introduction to J2EE Architecture
Java Applets.
Criteria for rapid prototyping
CSC Java Programming, Spring, 2012
CSC Java Programming, Spring, 2013
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
CSC Java Programming, Fall, 2008
Presentation transcript:

CSC 243 - Java Programming, Spring, 2009 Welcome to Java Programming! Tuesday, January 13, 2009

What are we planning to do? We will transport ourselves from C++ to Java programming in a series of graceful steps. We will use modular construction techniques, with the assistance of Java classes and interfaces. We will learn how to get leverage from the massive Java class library. We will learn to use programming tools such as Eclipse. We will enter the realm of graphical user interface (GUI) and other event-driven programming.

References http://cs.armstrong.edu/liang/intro7e/toc.html has downloads from our textbook. GNU make http://www.gnu.org/software/make/manual/ http://java.sun.com/javase/downloads/index.jsp docs. http://java.sun.com/javase/6/docs/ has on-line docs. http://java.sun.com/javase/6/docs/api/index.html class lib. /export/home/faculty/parson/JavaLang on bill.kutztown.edu Make sure that /usr/jdk/jdk1.6.0_02/bin is near the front of UNIX PATH. Follow instructions in the JavaShellSetup.pdf document (accessible via my home page at http://faculty.kutztown.edu/parson) to set up and verify your Java compilation environment

Java programs run on a Java Virtual Machine (JVM) Java source program, FILE.java javac –g FILE.java (creates FILE.class) java PACKAGE.FILE where PACKAGE is a subdirectory under ~/JavaLang This runs PACKAGE.FILE on an interpreted JVM.

Categories of Java Virtual Machines Java EE (Enterprise Edition) comes with enterprise level class libraries, for example, large database and server infrastructure Java SE (Standard Edition) is the typical configuration for non-corporate users, including single users Java ME (Micro Edition) is for embedded devices. It has a small and special-purpose class library.

Varieties of Java “programs” Stand-alone applications run like C++ programs. Applets run inside a web browser (GUI). Servlets run inside a web server (HTML). Java Frameworks can select and load Java plugins (components) at run time. Java can run on small footprint embedded devices (for example, cell phones).

First example Java program CountArgString counts distinct, non-overlapping occurrences of a string in a file /export/home/faculty/parson/JavaLang/week1/lecture1 Make sure you “cp –pr ~parson/JavaLang ~/JavaLang” to get JavaLang into your home directory Make sure CLASSPATH include your $HOME/JavaLang makefile drives execution of compile and test steps gmake build to compile Java files gmake test to run test cases gmake clean to clean up test output and compiled files