Packaging Java software. What the problem is zAn executable program often consists of a very large number of files zIt's a nuisance to manage lots of.

Slides:



Advertisements
Similar presentations
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 1 Introduction to Perl and CGI.
Advertisements

17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
Java State Exploration Tool Mike Lawson CS522 Fall 2004.
Chapter 6 Photoshop and ImageReady: Part II The Web Warrior Guide to Web Design Technologies.
Creating Jar Files Jin Hung, Gregory Olds, George Blank, Sun Java Web Site.
Objectives:1. Archiving and Packaging Java Code 2. The jar Program 3. Example Applet JAR Files.
MC365 Application Servers: Tomcat. Today We Will: Discuss what application servers are Introduce Tomcat Download and install Tomcat Break up into teams.
1 Introduction to Applets Overview l What is an Applet? l Steps for creating an applet l What is HTML? l Basic HTML tags l Drawing Simple Graphical shapes.
1 Applets. 2 Motivations When browsing the Web, you frequently see the graphical user interface and animation developed using Java. These programs are.
Objectives:1. Archiving and Packaging Java Code 2. The jar Program JAR Files.
COMP 14: Applets June 21, 2000 Nick Vallidis. Announcements zP6 is due Friday.
1 Recitation 11. Applet Applets. An applet is a Java program that is started by a browser (e.g. netscape or internet explorer) when an html file has a.
Software installation Chapter 7. Software installation Numerous software options Usually free Open source Several sources Installation CD Websites sourceforge.net.
Scite Scintilla integrated text editor. Click here.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L06 (Chapter 16) Applets.
European Computer Driving Licence Module 2 – Using the Computer and Managing Files Chapter 2.4 – Working with Files.
J2EE Java 2 Enterprise Edition. Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc
EE2E1. JAVA Programming Lecture 10 Applets. Contents Introduction Introduction Web-servers and clients Web-servers and clients A simple example “Hello.
Steps to Display a Text file in an Applet Abhishek Mehta.
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
WinZip Basics Chris Comito Marybeth MacLean Jameelah Roberts Matt Smith.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
13 C H A P T E R © 2001 The McGraw-Hill Companies, Inc. All Rights Reserved1 Downloading from the Internet The graphical user interface has made it so.
Android 4: Creating Contents Kirk Scott 1. Outline 4.1 Planning Contents 4.2 GIMP and Free Sound Recorder 4.3 Using FlashCardMaker to Create an XML File.
Introducing JavaBeans Lesson 2A / Slide 1 of 30 JDBC and JavaBeans Pre-assessment Questions 1.Which of the given symbols is used as a placeholder for PreparedStatement.
Introducing JavaBeans Identify the features of a JavaBean Create and add a bean to an application Manipulate bean properties using accessor and mutator.
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
Getting Started with Eclipse Sandeep Pasuparthy. What’s Eclipse? It is a free software / open source platform- independent software framework for delivering.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
Oracle8 JDBC Drivers Section 2. Common Features of Oracle JDBC Drivers The server-side and client-side Oracle JDBC drivers provide the same basic functionality.
CPS120: Introduction to Computer Science The World Wide Web Nell Dale John Lewis.
1 Web Developer Foundations: Using XHTML Chapter 10 Helper Applications and Plug-in Concepts.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
Application Servers: Tomcat. What is an application server? Servlets are Java’s answer to server-side programming. Servlets are a special type of Java.
Audio and Video CGS Some Common Audio Formats Format Use Extension MIDI instrumental music.mid MPEG songs.mp3 RealAudio live broadcasts.ra Wave.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic.
Day 7 Installing Software RPM tar, mtools make, ssh.
Managing Software Patches 10/15/ Introducing Solaris OE Patches A patch contains collection of files and directories Patch replaces existing files.
Clement Allen, PhD Florida A&M University SUMMER 2006.
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
Deployment via jars and Webstart. How do we distribute our application? Lab says you need to submit CD Lab says you need to submit CD Limitations of CD.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
1 Recitation 09. Applications and Applets Java applications Those who took CS100J and CS100M in fall 2003 may not have had much experience with Java applications.
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
Overview One-click launch of application Auto-install feature Provide versioning/caching feature for update/fast startup Provide some API for desktop application.
Chapter 6 Applets and HTML  Overview  HTML tags for Applets  Applet Life Cycle  Applet Class  JAR files.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
Chapter 14 Applets and Advanced GUI  The Applet Class  The HTML Tag F Passing Parameters to Applets F Conversions Between Applications and Applets F.
Chapter 4 Applets Cop Why Applets? WWW makes huge information available to anyone with web browser. Web server send web pages and images to your.
Javadoc. Purpose of javadoc javadoc is a program that reads your Java program and produces great-looking documentation in HTML format Without any help,
The Web Wizard’s Guide to HTML Chapter One World Wide Web Basics.
Javadoc. Purpose of javadoc  javadoc is a program that reads your Java program and produces great-looking documentation in HTML format  Without any.
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.
Applets, Images, and Audio Chapter 14 CSCI CSCI 1302 – Applets, Images, and Audio2 Outline Introduction The Applet Class –The init Method –The start.
Jar Files The Basics. 2 Outline Create a Jar Viewing the Contents of a JAR File Extracting the Contents of a JAR File Modifying a Manifest File Running.
APT Configuration Management May 25th, 2004 APT Configuration Management Jesse Doggett.
Packages. Access Specifications Public Available anywhere (public keyword) Only one public class per file allowed Protected Available in subclasses, and.
HTML Overview Part 8 – Java Applets 1. Applets 2  A Java applet is a small application embedded in your HTML document which runs in the browser window.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
1 CS100J 08 November 2005: Applications and Applets Java application; How to produce a stand-alone application, to be run without using DrJava or any such.
Selenium server By, Kartikeya Rastogi Mayur Sapre Mosheca. R
HTML HyperText Markup Language Victoria E. Kozlek.
Chapter 19 File System Backup. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. Objectives To describe how files and directories can be archived.
Building and Using Libraries CISC/QCSE 810. Libraries libraries exist for many common scientific tasks linear algebra – BLAS/ATLAS, LAPACK optimization.
Getting Started – Basic Page Structure
Compress/ Decompress files
JAR Files Objectives: 1. Archiving and Packaging Java Code
Distributed Computing, M. L. Liu
Executable Jars Dan Fleck Fall /27/2018.
Web Application Development Using PHP
Presentation transcript:

Packaging Java software

What the problem is zAn executable program often consists of a very large number of files zIt's a nuisance to manage lots of files zWe like to "package" files into a single file for transportation and distribution zWe will explore several different packaging techniques zDifferent techniques are suitable for different situations and kinds of programs

Zip files zZip files are yconvenient single archive files ycompressed to save space yunderstood on all platforms  Most Windows users have probably used WinZip to unpack downloaded files  Fewer people have used WinZip to create zip files

Creating a.zip file, I  To create a.zip file, use WinZip Classic

Creating a.zip file, II  The WinZip Classic interface is easy to figure out yCreate a new archive yAdd files to it

jar files  A jar (Java archive) file is like a zip file  jar files were designed for Java, but can be used for any kind of files  The jar program is modeled after the UNIX tar program and works very much like it  tar originally stood for tape archive  jar files are particularly important for Applets  An tag can request a jar archive

Applets zHere's how an Applet gets loaded:  First, the browser requests the.html page containing the Applet  The tag causes the browser to request the file MyApplet.class  The browser's Java VM looks at this file and makes requests for other.class files that may be needed yThe applet starts and requests image and sound files zAll this two-way communication takes time zApplets load faster if they make fewer requests

Too many files zA complete Java Applet may consist of  many.class files  many.gif and/or.jpg files  possibly some.avi or.mp3 files yother file types may be included zMy most complex "animation" applet uses:  One.html file  Four.class files  Fifty.jpg files

Creating a jar file  Example command: jar cvf arch.jar *.class  cvf is a list of options  c -- create a jar file  v -- verbose; tell what you do as you do it  f -- use this jar file (almost always needed!)  arch.jar is the name of the file that is created  You don't need the.jar extension, but it's a good idea  *.class says to include all class files xYou can list additional files at the end

Unpacking a jar file  Example command: jar xvf arch.jar  cvf is a list of options  x -- extract from a jar file  v -- verbose; tell what you do as you do it  f -- use this jar file (almost always needed!)  arch.jar is the name of the file that is unpacked  You will also get a "manifest" file that may contain information about the jar file xMost of the time you can ignore the manifest file

Examining a jar file  Example command: jar tvf arch.jar  cvf is a list of options  t -- tell what is in the jar file  v -- verbose; tell what you do as you do it  f -- use this jar file (almost always needed!)  arch.jar is the name of the file that is examined

Using a jar file in an Applet zAn applet must be used from an HTML page zThe Applet tag has three required parameters:  code = the name of the main class file  height =, width = the size of the applet zTo use a jar file, we need a fourth parameter:  archive = name of the jar file zExample: y

Other options  InstallAnywhere is also widely used  InstallAnywhere Now! is the basic version  Now! is free  InstallShield Pro is widely used z "Industrial strength" z $995

The End