Re: Re: jar missing in /usr/share/maven-repo/

tony mancill <[email protected]>
Newsgroups gmane.linux.debian.devel.java
Message-ID <ZKYywSoMJiqF5tif@lark>
On Wed, Jul 05, 2023 at 09:57:46PM +0200, Thorsten Glaser wrote:
> On Wed, 5 Jul 2023, Andreas B. Mundt wrote:
> 
> >after that.  However, when I try to start it, I get:
> >
> >  $ java -jar /usr/share/java/filius.jar
> >  Error: Unable to initialize main class filius.Main
> >  Caused by: java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException
> 
> I think you have to do:
> 
> java -cp /usr/share/java/logback.jar:/usr/share/java/foodependency.jar:… -jar /usr/share/java/filius.jar
> 
> It’s common to put that into a tiny shell script in /usr/bin.

You can use java-wrappers for this. 

Here's an example of a wrapper script:

  https://salsa.debian.org/java-team/jabref/-/blob/master/debian/jabref-wrapper

Which needs to be installed in the binary package:

  https://salsa.debian.org/java-team/jabref/-/blob/master/debian/rules#L13

And be declared as a dependency of the binary package:

  https://salsa.debian.org/java-team/jabref/-/blob/master/debian/control#L55

Cheers,
tony
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE5Qr9Va3SequXFjqLIdIFiZdLPpYFAmSmMsAACgkQIdIFiZdL
PpYv4A/+M42U8uFdvl/fYGP5iD7FEASHGW5/qsncmuB+goXRMK/M68vBptL7YMq5
38P/moEeswMp2kJGLyO7zUxzWOu4jI2OHZ7DuFZddnrcDZLab52yegR1SoShl3U9
DnTY4KPPbkw6s3CX22Nbvz0rEoGq98G2N/eQggqK2kPn1YuAI0n99w0Od4luPhEm
99lgxPlWD5+bFsr6cu1LlS9qipEljEgnt+uFhqWzObUajZbqgj9TE8D6muwoERw6
bYwpRBsnGp/A7v/nP8PYBAwvQo2A6v1cHrlR09oT1tKooWbi1mXhQQgK5p6R/Rww
fRcTRsocE17CVxjST7Bs7i+IcVggVpMYawMi+WgvkEoasKDvFYaf/9GvY9j8fQ0h
5wkJy28or4GIGkCr01tvDuWI/J5NrxAfps8sio24+oJ5Cp0XoYljN+VYiUR+MMtd
pqO0s5N6IfTmm3yVasHpQBZh5KdN3uhULmu3AhvzsmMNn6e7c+Gj0yyfA2p3DqER
ST9ehYnxwI9j2URo8Zbz5ymxArlNSueNZx2CHui6LHYkdMjZ19S851RqVUsWC7no
pzx1ceccgidKWXSU8Kr4/Js/jgv5Hn42b/yLLCKd6Y+VdXh8vcd0+hmXu9jIc4t9
+oUhR/9uw6QtB2iJZ6BqCDlMox3+giryavNoVNCMR2OVVqFSVYs=
=weWz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.