---
name: "jh_linkjars"
section: "1"
platform: "linux"
package: "javahelper"
version: "0.80"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/jh_linkjars"
---

# jh\_linkjars(1)

populate folders with symlinks to jar files

## NAME

jh\_linkjars - populate folders with symlinks to jar files

## SYNOPSIS

**jh\_linkjars** \[*debhelper options*\]

**jh\_linkjars** \[*debhelper options*\] *directory*

## DESCRIPTION

If upstream ship convenience copies of third-party jar files which have been removed (see [**jh\_repack**(1)](/jh_repack/1.md)), but the build system refers to that directory, **jh\_linkjars** can be used to populate the directory with symlinks to the packaged jars in /usr/share/java.

It is called either with a directory on the command line or by specifying one target directory per line in the file debian/linkjars.

**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.

**jh\_linkjars** can be called with -u to remove all the symlinks in the clean target.  This is done automatically by [**jh\_clean**(1)](/jh_clean/1.md).

## FILES

- *debian/linkjars*

  List of directories to populate; one directory per line.

## OPTIONS

- **-t**, **--transitive**

  Transitively link jar files (i.e. also include indirect dependencies in the target directory).

- **-u**, **--unlink**

  Remove all files/links in the target directories that **jh\_linkjars** created (or would have created).

Beyond the above, **jh\_linkjars** also accepts the shared debhelper options documented in [**debhelper**(7)](/debhelper/7.md).

## SEE ALSO

[**debhelper**(7)](/debhelper/7.md)

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\>
