JH_INSTALLLIBS(1)

πŸ’… JH_INSTALLLIBS πŸ’…

okay bestie, say hi to jh_installlibs, a lil Javahelper gem πŸ’– β€” it's the one from the Javahelper manual, section 1, and its whole job is: install jar files into usr/share/java of a package. slay. 🫢


✨ NAME ✨

jh_installlibs β€” installs jar files in usr/share/java of a package πŸŽ€


✨ SYNOPSIS ✨

jh_installlibs [debhelper options]

jh_installlibs [debhelper options] [-ppackage] [--classpath=cp]
[jar [...]]

✨ DESCRIPTION ✨

so here's the tea β˜•: for library packages, Debian Java policy currently requires that libraries get installed to /usr/share/java in a versioned format, plus an unversioned symlink. and jh_installlibs is literally the girl who shows up, takes your jar, and installs it correctly. no cap. πŸ‘‘

same energy as debhelper programs: it can either take a jar as a parameter, or read a whole list of jars from a file in the Debian directory. it also follows the -p, -i and -a semantics of debhelper when it's picking which packages to install the jar to. and when it's operating on a package, jh_installlibs reads the list of library jars from debian/package.jlibs or debian/jlibs. πŸ¦‹

the jlibs file is just a list of jars to install, one per line, and it works exactly the same as listing them on the command line. every jar gets installed to debian/package/usr/share/java/ in the appropriate versioned and unversioned forms. iconic. ✨

if the jars built by upstream already contain the version number, that version number gets stripped before installing. jh_installlibs will also try to strip the upstream version number of any ds or dfsg suffix. other version-mangling options or explicit version numbers can also be provided. 🌸


✨ FILES ✨

  • debian/package.jlibs, debian/jlibs β€” okay so the jlibs file is a list of jars to install, one per line, and it works exactly the same as listing them on the command line. each jar is installed to debian/package/usr/share/java/ in the appropriate versioned and unversioned forms. πŸ’œ
heads up bestie 🚨 β€” unlike most other debhelper commands, jh_installlibs will use debian/jlibs as a fallback configuration file for all packages that it acts on. other debhelper commands usually only apply this fallback to the "main package". so yeah, it's giving generous. πŸ™ˆ

✨ OPTIONS ✨

  • --no-mangle β€” do not try to sanitize the upstream version number. leave it alone, she's fine as she is πŸ’…
  • --upstream-version=version β€” use version as the upstream version. this option implies --no-mangle πŸ‘‘
  • --version-strip=regex β€” use regex instead of the built-in rules for sanitizing the upstream version number. 🧚
this option is ignored when --no-mangle is passed (or implied by another option). πŸ«₯

beyond all of the above, jh_classpath also accepts the shared debhelper options documented in debhelper(7). 🌈


✨ SEE ALSO ✨

  • debhelper(7)
  • this program is a part of javahelper and uses debhelper as backend. πŸ› οΈ
  • there are also tutorials in /usr/share/doc/javahelper. πŸ“š

✨ AUTHOR ✨

Niels Thykier <niels@thykier.net> πŸ’Œ


and that's the whole page, bestie β€” version 0.82, dated 2026-05-17, straight from the Javahelper lineup. go install those jars, you absolute main character. periodt. πŸ‘‘βœ¨πŸŽ€

πŸ“¦ where this page comes from