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

Bug#539315: executable-not-elf-or-script test should know about jars



On Sat Jun 09 16:06, Colin Watson wrote:
> On Sat, Jun 09, 2012 at 03:58:26PM +0100, Colin Watson wrote:
> > I tried to arrange that the general design should be amenable to a
> > non-Linux implementation.  That said, it's true that nobody has so far
> > got round to coming up with one.  I would expect it to be fairly trivial
> > to write a Hurd implementation, seeing as binfmt_misc is really just a
> > special case of translators; I don't know what it would take to
> > implement it on kFreeBSD.
> 
> An alternative, incidentally, would be to use a small shim which looks
> something like this (entirely untested):

If I have an executable jar, how do I make the kernel invoke this instead if I
just try and exec it?

(This is the main issue with it working on kfreebsd)

I have tried making jar files with a shbang line at the start, which (IIRC)
works fine on openjdk, but not with gcj. Unfortunately, freebsd is also the
platform that doesn't have working openjdk yet...

Matt

Attachment: signature.asc
Description: Digital signature


Reply to: