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

Re: Autopkgtest fails when executable is link to JAR



On Sat, 30 Apr 2016 at 12:08 Eugene Zhukov <eugene@debian.org> wrote:
> looks strange, trying to execute a jar file directly. Should be something like java -jar  .../artfastqgenerator.jar
>
> I do not understand why a jar file (well its symlink) is in /usr/bin. Should be a wrapper shell calling java command.
>
artfastqgenerator depends on jarwrapper, which is a wrapper which does
exactly that.

Note that jarwrapper sets up a binfmt-misc handler for running JAR files directly. The binfmt-misc handler probably does not work in the LXC container that ci.debian.net is using to run the tests, hence the failure.

As a workaround, you could run `jarwrapper /usr/bin/artfastqgenerator <args>` directly to execute the JAR in the same way that the binfmt-misc handler would.

Reply to: