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 todebian/package/usr/share/java/in the appropriate versioned and unversioned forms. π
heads up bestie π¨ β unlike most other debhelper commands,jh_installlibswill usedebian/jlibsas 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
- ubuntu stonking: javahelper 0.82 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms