Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A Jar file is a compressed archive containing a set of files, ressources and directories. If its manifest file contains an attribute named ''Main-Class'', the attribute value (a canonical class name without the leading .class extension) will be launched at startup. Then it will be considered as executable archive.

...

As you saw on the previous section running the demo application with the _java -jar_ command, we didn't specify the classpath entries at all. If you wonder why it is working, just have a look to the manifest of this jar archive. You can specify classpath entries in this file, here it is the manifest of the demo archive:

...

First, do not include the module in your classpath, when you are dealing with jfreereport-module-''<modulename>''-''<version>''.jar module libraries it is easy. If you do not remember what are these *.jar libraries, go back to Bundled distribution section for more explanations.

...