Re: jarwrapper dependency
On Thu, Jul 11, 2013 at 3:16 PM, Matthew Johnson <mjj29@debian.org> wrote:
> On Wed Jul 10 17:39, Eugene Zhukov wrote:
>> >> >> 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
>> >
>> > You mean neither of them work? It what way don't they work? What error do you
>> > get?
>>
>> I can see (red) link created under /usr/bin to my jar, like this:
>> lrwxrwxrwx 1 root root 27 Jul 8 08:55 epubcheck ->
>> ../share/java/epubcheck.jar
>> Running epubcheck just gives:
>> -bash: /usr/bin/epubcheck: Permission denied
>> running sudo epubcheck gives:
>> sudo: epubcheck: command not found
>
> If the link is displayed in red then it doesn't actually link to something valid. Does /usr/share/java/epubcheck.jar actually exist?
>
Yes it does, and it works if I run it like java -jar
/usr/share/java/epubcheck.jar.
>> > This also seems fine.
>> >
>> > What return code does jardetector your.jar give you?
>> Gives nothing.
>> > What does jarwrapper your.jar do?
>> Same as if I would write 'java -jar' instead of jarwrapper.
>
> Yeah, the symlink is broken. You need to fix that.
That's the whole point, I understand it is broken, but I don't know
how to fix it.
Can it be so, that the link is created before the jar is copied to
/usr/share/java/ during packaging/installation process?
>
> Matt
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iQIcBAEBCgAGBQJR3qIEAAoJEKVC9ua3o6NmgRAP/ROO7HJn5CsuC5LA5VxUS2zJ
> KjZczVjQYLYujVHi7sAVrAm0fOkBkRmGi0CU/kcX0GypXo+R6Ha2Qs1AeRPjnvti
> YXsMl6AdF42uUCAbrvwNnNawvCng9RLmUh4PloVG77xx8CSn52ivAymEpuM+qZs8
> nIpBURotjYa1z6VLMIHn3CXOz5EKtFGBCaOnoWrw5IB1gtmpEIPRGSc+ub1wA554
> bdLiuMs4x/AMYgyQdeahJtznkUGIw4EAshmdabuCQdBG5cHD14xZ9L8MET34BjY/
> 0x692O3qNrC4R8QfWZC+2lcUoIDT7DDd4niNOF2zQG1pjbYN4GfItrHsUHDO8Vl1
> seHc8+dVD5J3PSf0CJRAijjvlBHNo7N0PybgdcwxzNzh/SY0i/79seklgNzHjM2S
> v6I3KGGP56prphsVaJBdwC1J4DqSEt5je7XSKL3DrMVH+rqQJOuwcWhtA8b5+P+z
> l0WLCG8QNvaO9KcgiAnPYggkmD++QCdQ1yY1y5Ta+yMitUHsJvk2d19k/bmOlol9
> 1dOk1/RC9WYdoEloPcj/AVie/K/hEdO6OQuhO3Jy9zbZZvw1ClPLS/TMMts0TYqY
> 1dGTycd/nLqv9NrKs91TdBlOjFs7G8KSqXADRjIzX1gp87ka8APqFTKkEshv4hg6
> CzLZCnQrLyvN2mq1/uyx
> =kWES
> -----END PGP SIGNATURE-----
>
Reply to: