JH_LINKJARS(1)

πŸ’– JH_LINKJARS πŸ’–

okay bestie, welcome to jh_linkjars β€” a lil javahelper tool from the Javahelper manual, and honestly? she's a whole vibe. she populates folders with symlinks to jar files. that's the job. let's get into it 🫢


✨ NAME ✨

jh_linkjars β€” populate folders with symlinks to jar files πŸ’…


✨ SYNOPSIS ✨

jh_linkjars [debhelper options]

jh_linkjars [debhelper options] directory

✨ DESCRIPTION ✨

so here's the situation, and it's giving upstream did a thing 😭. If upstream ship convenience copies of third-party jar files which have been removed (see jh_repack(1)), but the build system still refers to that directory? yeah, that directory is now empty and the build is gonna be Big Mad. enter jh_linkjars β€” she populates that directory with symlinks to the packaged jars in /usr/share/java. icon behaviour, no cap. πŸ‘‘

she gets called either with a directory right there on the command line, or by specifying one target directory per line in the file debian/linkjars. pick your fighter.

then jh_linkjars will scan all of the (installed) build-dependencies and create a symlink to every jar which is installed by those packages in the target directory. literally every single one. slay. ✨

and yes she can be called with -u to remove all the symlinks in the clean target β€” that's the unlink era. this is done automatically by jh_clean(1), so you don't even gotta lift a finger. 🧚


✨ FILES ✨

  • debian/linkjars β€” list of directories to populate; one directory per line. one. per. line. don't be chaotic about it. πŸ“

✨ OPTIONS ✨

  • -t, --transitive β€” transitively link jar files, i.e. also include indirect dependencies in the target directory. she's going deeper. bestie is following the whole friend-of-a-friend chain. πŸ¦‹
  • -u, --unlink β€” remove all files/links in the target directories that jh_linkjars created (or would have created). it's giving cleanup arc, and yes the "(or would have created)" part is doing exactly what it says. 🌸
and beyond the above, jh_linkjars also accepts the shared debhelper options documented in debhelper(7). shared options, shared energy, we love a collaborative queen. πŸ’–

✨ SEE ALSO ✨

this program is a part of javahelper and uses debhelper as backend. there are also tutorials in /usr/share/doc/javahelper β€” go read them, they're lowkey helpful fr fr. πŸ“š


✨ AUTHOR ✨

Niels Thykier <niels@thykier.net> β€” we stan. πŸ’œ


aaaand that's the whole page, bestie!! version 0.82, dated 2026-05-17, straight from the Javahelper corner of the world πŸŽ€ go populate some directories and absolutely devour πŸ’…βœ¨

πŸ“¦ where this page comes from