Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #12670

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

From tony mancill <tmancill@debian.org>
Newsgroups linux.debian.maint.java
Subject Re: Re: jar missing in /usr/share/maven-repo/
Date 2023-07-06 05:30 +0200
Message-ID <GOnQR-3gUq-7@gated-at.bofh.it> (permalink)
References <GOfzX-3bCI-1@gated-at.bofh.it> <GOgPn-3ciM-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

jar missing in /usr/share/maven-repo/ "Andreas B. Mundt" <andi@debian.org> - 2023-07-04 22:30 +0200
  Re: jar missing in /usr/share/maven-repo/ Pierre Gruet <pgt@debian.org> - 2023-07-04 22:50 +0200
    Re: Re: jar missing in /usr/share/maven-repo/ "Andreas B. Mundt" <andi@debian.org> - 2023-07-05 20:40 +0200
      Re: Re: jar missing in /usr/share/maven-repo/ Thorsten Glaser <t.glaser@tarent.de> - 2023-07-05 22:00 +0200
        Re: Re: jar missing in /usr/share/maven-repo/ tony mancill <tmancill@debian.org> - 2023-07-06 05:30 +0200
        how to handle 'resources' best "Andreas B. Mundt" <andi@debian.org> - 2023-07-06 19:50 +0200
          Re: how to handle 'resources' best Thorsten Glaser <t.glaser@tarent.de> - 2023-07-06 20:00 +0200

csiph-web