Sorry, couldn't replay earlier, was on holiday and away from PC. On Fri, Jun 21, 2013 at 12:22 PM, Matthew Johnson <mj...@debian.org> wrote: > On Thu Jun 20 16:25, Eugene Zhukov wrote: >> >> Yes, it is copied and appears now in Depends. With foobar.links I even >> >> get the link /usr/bin/foobar -> ../share/java/foobar.jar, but it >> >> doesn't work still. >> > >> > So, you have the dependency in the binary package, you have the symlink. >> > Is the >> > jar executable? You must do that for binfmt_misc to even try doing >> > anything. >> > Your options are manually setting it to executable, or calling jh_exec >> > after >> > the link step, which will do it for you. >> > >> Yes, the jar is executable and >> java -jar /usr/share/java/foobar. > > So.. what's not working? jarwrapper is installed when you install the package? Yes > The symlink to the jar is on your path? Yes > The jar runs with java -jar? Yes > But '/path/to/jar' doesn't work? just 'linkname' doesn't work? Yes > Does /proc/sys/fs/binfmt_misc/jarwrapper exist? What's in it? Yes, contents: enabled interpreter /usr/lib/binfmt-support/run-detectors flags: offset 0 magic 504b0304
> What does update-binfmts --display show you? python2.6 (enabled): package = python2.6 type = magic offset = 0 magic = \xd1\xf2\x0d\x0a mask = interpreter = /usr/bin/python2.6 detector = python2.7 (enabled): package = python2.7 type = magic offset = 0 magic = \x03\xf3\x0d\x0a mask = interpreter = /usr/bin/python2.7 detector = jar (enabled): package = openjdk-6 type = magic offset = 0 magic = PK\x03\x04 mask = interpreter = /usr/bin/jexec detector = jarwrapper (enabled): package = <local> type = magic offset = 0 magic = PK\x03\x04 mask = interpreter = /usr/bin/jarwrapper detector = /usr/bin/jardetector python3.2 (enabled): package = python3.2 type = magic offset = 0 magic = \x6c\x0c\x0d\x0a mask = interpreter = /usr/bin/python3.2 detector = > > Matt > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iQIcBAEBCgAGBQJRxBtCAAoJEKVC9ua3o6NmFu4QALeaBMh7UircNVxo04sVKYBR > v3f9A/tQY+nCeqtum8YwLFLtdtO491aolATqz2bipjF/ECxd4JP8rPZixac6xLRS > UIwDBvF6U9JUy9wcBIa/oSIzv180yrrat672PzYbl5eRDEYyB7YdmlSh/PaHUOTt > aKcp6fdsoxeV0oJVCZaWQ6djLjcGrTxcG13mL4qFGLMhFGz2lVU7yyM8gWweuotW > x14Dx2EIoMHoW/kjgVPILEl1ThDKR5EDZ3C18fa34AIz0Tk/8KFcRnGNr1O11fhF > Tp1RL6vCeBz4Udkhb9i90PYirzpHYwyw9nG0K+Zp3dhUe1ASZP91APTgdnMQ+FDC > SFSmDyrEaJZSVn00vRCdKoJMFLvl+GZlxmroxg+fpJ/OsCHXo9bnvZ3RUlPmNBI7 > LsGR8sKY1Tq13k1TapPVO3S+uzbrk1LGtOfOdmCZ0mbBWeINETUOQ34Nnm9YPilS > o97Hva0EuHdt1APs76dMdNoO2BHU/92pKZx5knqZBC3Vfeym2qdt0CS7JE/O2r+/ > 90R5RCszVxSjW/4saxXkqP/x42dc5MWICH+BA3ISKDrUJ8dBdg+OgowNURwwXpt8 > 48jZxWK7cYp01mMAtUB6p3czcUOcLZOrHeFH9FY47EOE13ppFmtnDjCrB2BLYYTc > no9K13W0H6Zs5BiLyVlj > =PnZ0 > -----END PGP SIGNATURE----- > -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAPqGMfJqXTWdUNH7j+nJbUmzACu0L-kuU06MPRicF0M5MRv=q...@mail.gmail.com