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 ©1996-2009 Roedy Green, Canadian Mind Products
This essay does not describe an existing computer program, just one that should exist. This essay is about a suggested student project in Java programming. This essay gives a rough overview of how it might work. I have no source, object, specifications, file layouts or anything else useful to implementing this project.

This project outline is not like the artificial tidy problems you are spoon-fed in school, when all the facts you need are included, nothing extraneous is mentioned, the answer is fully specified, along with hints to nudge you toward a single expected canonical solution. This project is much more like the real world of messy problems where it is up to you to fully the define the end point, or a series of ever more difficult versions of this project, and research the information yourself to solve them.

Everything I have to say to help you with this project is written below. I am not prepared to help you implement it; or give you any additional materials. I have too many other projects of my own.

Though I am a programmer, 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 in any way you please and to keep all the profits from your endeavor.

Please do not email me about this project without reading the disclaimer above.

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 You can get the freshest 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
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.100]
You are visitor number 5,135.