Last modified: 2021-02-19
This is an information link page of
David Casperson
Associate Professor
Computer Science
University of Northern British Columbia

Technical Advice related to Using Java

This page is very much a work in progress. It was substantially revised 2009-03-09. It was revised again 2012-01-28.

Building .jar files

A .jar file is a Java Archive file (like a .tar file is a tape archive file). That is, a .jar file enables you to bundle multiple files into a single archive file. Typically a JAR file contains the class files and auxiliary resources associated with applets and applications [*].

.jar files can be created with the command-line utility which is described in the links below. A very typical command line would look something like (assuming lab4 is directory with .java and .class files)

  cd ../.. ; jar cf my-proj.jar ./cpsc101/lab4

This would create a .jar file called my-proj.jar that contains all of the files in the lab4 directory

CLASSPATH and package information

There still isn’t much here other than the following links.

Home Page Site Map

About Jar Files
Building .jar files
Tutorial Links
Writing Event Listeners
Table of Listeners …
Links for Java 8 (Oracle)
Links for Java 10 (Oracle)

UML Links

Current Semester
David's Home page