Applications Active Web Documents Active Web Documents.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
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.
Java Applet & JavaScript SNU OOPSLA Lab. October 2005.
Client Side Programming Using Java Applet Outcomes: You will be expected to know: – Java Applets and HTML file; –bytecode and platform independent programs;
got ? Research Project – April 1998 Hang Xia, Mark Wang, Richard S. Chang Updated: R Norman, August 1999.
1 Frameworks. 2 Framework Set of cooperating classes/interfaces –Structure essential mechanisms of a problem domain –Programmer can extend framework classes,
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
Introduction to Java.
Session-02. Objective In this session you will learn : What is Class Loader ? What is Byte Code Verifier? JIT & JAVA API Features of Java Java Environment.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
Developing User Interfaces (DUI) Chris North cs3724: HCI.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Introduction to Java CSIS 3701: Advanced Object Oriented Programming.
Applets & Servlets.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 16: Java Applets & AWT Fundamentals of Web Programming.
JAVA APPLETS By: Ms. Humaira Siddiqui. Java and the Internet Java is considered to be a language well suited to be used in the internet. In contrast with.
Why Java? A brief introduction to Java and its features Prepared by Mithat Konar.
Introduction to the Java Virtual Machine 井民全. JVM (Java Virtual Machine) the environment in which the java programs execute The specification define an.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
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,
Java Applets. 2 Introduction to Java Applet Programs  Applications are stand alone programs executed with Java interpreter executed with Java interpreter.
Lecture :2 1.  DEFENTION : Java is a programming language expressly designed for use in the distributed environment of the Internet. It was designed.
The Joy of Programming (also known as) Introduction to Object-Oriented Programming.
CPRG 215 Introduction to Object-Oriented Programming with Java Module 1-Introduction to Java Topic 1.1 Basics of Java Produced by Harvey Peters, 2008 Copyright.
Java Applets. 2 Introduction to Java Applet Programs Applications are ___________________ programs –executed with Java interpreter Applet is a small program.
CSC 205 – Java Programming II Applet. Types of Java Programs Applets Applications Console applications Graphics applications Applications are stand-alone.
Java applets. Outline What is Java? Java Applications Java Applets Java Applets Securities Summary.
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.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
CT1513 Introduction To java © A.AlOsaimi.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
Applets Yong Choi School of Business CSU, Bakersfield.
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.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
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.
Java – in context Main Features From Sun Microsystems ‘White Paper’
CSI 3125, Preliminaries, page 1 Applet. CSI 3125, Preliminaries, page 2 Applet An applet is a Java program that runs in a Web browser. An applet can be.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 15: Java Basics Fundamentals of Web Programming.
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
JavaScripts.
JAVA, JAVA Applets, and JavaScript
Before You Begin Nahla Abuel-ola /WIT.
A Programming Language for Web-based Computing with Graphics
Chapter 1 Introduction to Computers, Programs, and Java
Introduction to.
Introduction Enosis Learning.
PHP / MySQL Introduction
Introduction Enosis Learning.
Java Applets.
Introduction CSC 111.
A Programming Language for
Java History, Editions, Version Features
Chap 1. Getting Started Objectives
G6DICP - Lecture 27 Java Applets.
A Programming Language for
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
Presentation transcript:

Applications Active Web Documents Active Web Documents

Introduction Active documents consist of code executed on computer running browser Java language allows development of active document programs Programs called applets Platform independent Secure Active Web Documents

Continuous Update: Server Push Some servers will send new versions of document: server push. Or clients may request new versions periodically: client pull. Each push or pull requires dedicated server resources. May not scale with number of clients. Also requires network bandwidth for each update. Active Web Documents

Active Documents Shifts the responsibility for updates to browser client…computation on client now. Work scales with number of active documents on client Active document can, in fact, incur less server overhead than dynamic document Active Web Documents

Active Documents Requires programming language; what should that language look like? How should the language be represented for execution? Text, binary or compressed? Multiple implementations possible; standards necessary for coordination Active Web Documents

Active Documents Active Web Documents

Java Technique for writing, compiling, downloading and executing active documents Includes: Programming language Runtime environment Class library Active Web Documents

Java: Language Resembles C++ Characteristics: Object-oriented Some C++ stuff removed or restricted Characteristics: High level, general purpose, object oriented Dynamic memory allocation Strongly typed, static type checking Concurrent Active Web Documents

Java: Runtime Environment Interpretive execution - Java language compiled into bytecodes Automatic garbage collection Multithreaded execution Internet access Graphics Active Web Documents

Java: Portability Java must be platform-independent Run-time environment clearly defined and has no implementation dependencies Bytecode representation is platform independent Java Virtual Machine. (JVM) Active Web Documents

Java: Library Library provides collection of common functions for Java programs in the form of classes. Classes for: Graphics Low-level network I/O (socket-level) Web server interaction Run-time system calls File I/O Data structures Event capture - user interaction Exception handling Active Web Documents

AWT Graphics Java graphics library called Abstract Window Toolkit (AWT) Includes high-level and low-level facilities Windows with components - scrollbars, buttons Blank rectangular area with object drawing Run-time environment implementation maps AWT functions to window system-specific functions. Active Web Documents

Java Programs Two types of Java programs: Stand alone Java programs. Java applets. What does a Java standalone program look like? How is it compiled & run? Active Web Documents

Compiling Java Programs javac translates Java source code into bytecodes Checks for correct syntax Imports classes from library Writes bytecode program to filename.class Other development environments exist May include source code management Active Web Documents

Java Applets Java applet is compiled in the usual way: javac filename results in filename.class. filename.class is put in HTML file and run. An applet is run using an appletviewer or a browser. E.g. appletviewer filename.html. An applet has a panel associated with it. Java applet has a method init() to initialize the panel associated with it. Active Web Documents

Java & Browsers Browser must include Java interpreter Java interpreter works through browser Graphics HTML Interpreter also works through native operating system File I/O Network operations Active Web Documents

A Java Applet Example Active Web Documents

Running Java Example <applet code="clickcount.class" height=150 width=400> </applet> Active Web Documents

Other Alternatives JavaScript VBScript. Interpreted scripting language Like csh for browser VBScript. Other languages compiled into Java bytecodes. Other programming technologies - Inferno Active Web Documents

Active Web Documents

Summary Active documents execute code in browser on user's computer Java is most widely used active document technology Java consists of: Programming language Run-time environment Class library Tags in browser for Java program invocation Active Web Documents