Jar Verifier  Jar Verifier

go to home page Student Projects full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
This essay is about a suggested student project in Java programming. This essay gives a rough overview of how it might work. It does not describe an actual complete program. I have no source, object, specifications, file layouts or anything else useful to implementing this project. Everything I have to say to help you with this project is written below. I am not prepared to help you implement it; I have too many other projects of my own.

I do contract work for a living, which could include writing a program such as this. However, I don’t do people’s homework for them. That just robs them of an education.

You have my full permission to implement this project any way you please.

The jar.exe program is quite sloppy. It will let you create all manner of malformed jar files. What does it do?
  1. Make sure that every class file has a path that precisely matches its package name.
  2. Makes sure that the Manifest is present.
  3. Makes sure the manifest Main-Class Entry points to a valid class.main.
  4. Makes sure alls path entries are properly formed, e.g. no C:s in them, and that all Class names begin with Capital letter.
  5. This is more difficult, and could be left out on your first cut: check that all classes referenced, are included. Don’t stop on the first error. Give a full list of missing classes.
  6. An advanced version might prune classes that are not used, keeping a list of classes known to be dynmically loaded.
It might even correct type 1 errors which are so easy to make. It should not do it quietly because such errors imply there may be matching errors in resources that cannot be so easily detected.

Since I have been using GenJar much the urgency for this project has evaporated. It makes sure at least that all dependent classes are included, but not properties or dynamically loaded classes.

GenJar
Interface Finder: find classes on classpath implementing a given inteface
jar
JarCheck
JarLook
Java Jar Catalog Project
Path and Classpath tool project
Which and What Project: path and classpath analysis

CMP homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.61] The information on this page is for non-military use only.
You are visitor number 3,538. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/project/jarverifier.html J:\mindprod\project\jarverifier.html