[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

Attachment: signature.asc
Description: PGP signature


Reply to: