jump to navigation

using libraries in your project February 29, 2008

Posted by lemonpress in 1 cat, java web dev.
trackback

xxx.jar – a library of useful classes packaged in a single archive file.

using libraries in your project is dead-easy.

  1. create classes, e.g. a collection of custom tag handlers
  2. zip them up using jar cf mytags.jar *
    or jar cf mytags.jar list-of-files.class
  3. copy mytags.jar into lib/ dir of another project (see More)
  4. use them

may need to reference them in the classpath of the project

in Eclipse: project preferences=>build path=> add library =>user library …

or perhaps can reference the entire lib dir as the location of project libraries

-cf     Create a new archive with the file name specified.

Comments»

No comments yet — be the first.