<div dir="ltr">Hi Andreas,<div><br></div><div>This does sound like an issue we had in the past with jarwrapper and binfmt-support. IIRC, Colin Watson was able to track down the source of this, but at the moment I cannot locate the details of that exchange. It was something along the lines of there being multiple interpreters registered for the given binfmt.</div><div><br></div><div>If we know that the user's kernel supports binfmt_misc, then we should be able to figure out what's happening. The output of "sudo update-binfmts --display jarwrapper" (should point to jarwrapper) and "sudo update-binfmts --display jar" (should point to jexec) might be informative. I'll try to reproduce locally and report back.</div><div><br></div><div>Cheers,</div><div>tony</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 23, 2017 at 11:36 PM, Andreas Tille <span dir="ltr"><<a href="mailto:andreas@an3as.eu" target="_blank">andreas@an3as.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Java developers,<br>
<br>
is there any known issue with running JARs via symlink to /usr/bin?<br>
<br>
I suspect this is the problem with this bug but I wonder what might be<br>
the recommended way from Java team about this way to start Java programs<br>
that used to work but is not always relieable.<br>
<br>
Kind regards<br>
<br>
Andreas.<br>
<br>
On Fri, Apr 07, 2017 at 12:43:42PM +0200, Andreas Tille wrote:<br>
> Hi,<br>
><br>
> On Fri, Apr 07, 2017 at 12:17:08PM +0200, Sascha Steinbiss wrote:<br>
> > Hi,<br>
> ><br>
> > > على الأربعاء 5 نيسـان 2017 12:32، كتب Jerome:<br>
> > >> When running artemis package, get this issue :<br>
> > >><br>
> > >> $ art<br>
> > >> bash: /usr/bin/art: cannot execute binary file: Exec format error<br>
> ><br>
> > Probably something to do with jarwrapper? I remember running into<br>
> > something similar quite some time ago.<br>
><br>
> I'd assume the same. I can confirm that I can not reproduce here as<br>
> well but the problem sounds like jarwrapper connected. I do not<br>
> remember what package I had in the past with a similar issue but<br>
> providing a shell wrapper calling java with some options and the jar<br>
> file solved the issue.<br>
><br>
> It seems that jarwrapper is not really reliable - as far as I know<br>
> specifically if users are using a self compiled kernel where this<br>
> feature can be switched of.<br>
><br>
> Hope this helps<br>
><br>
> Andreas.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<a href="http://fam-tille.de" rel="noreferrer" target="_blank">http://fam-tille.de</a><br>
<br>
</font></span></blockquote></div><br></div>