This is an information link page of David Casperson |
|
This page is very much a work in progress. It was substantially revised 2009-03-09. It was revised again 2012-01-28.
.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
jar
command for Solaris.
jar
files.
CLASSPATH
and package
informationThere still isn’t much here other than the following links.
PATH
and
the CLASSPATH
.
CLASSPATH
from .jar
files
fall-2024