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

Re: jarwrapper dependency



On Fri, Jul 12, 2013 at 1:36 PM, Matthew Johnson <mjj29@debian.org> wrote:
> On Thu Jul 11 18:07, Eugene Zhukov wrote:
>> >> 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
>> >
>> > 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.
>>
>> 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?
>
> Ah, it would have been helpful if at some point in the process you'd actually said that.
>
> Does this work:
>
> $ /usr/share/java/epubcheck.jar
Yes, it does. Like I said
java -jar /usr/share/java/epubcheck.jar
works just fine.
>
> when you say "it's displayed in red", do you mean the target of the link, or the link itself. My bash shows a good link to a jar to be cyan for the link and red for the jar, but a bad link red for both.
In my case it is cyan for the link and red for the jar too. However if
I install a working package from Sid then it is cyan for the link and
green for the jar.
>
> is /usr/share/java/epubcheck.jar executable? That's the best explanation I have for this behaviour.
It is executable only via java -jar. If I just run
/usr/share/java/epubcheck.jar it's "Permission denied". However with
older epubcheck package from Sid the jar in /usr/share/java is
displayed in green!
That's the whole reason for the problem. How to grant execute
permission to jar when it is installed to /usr/share/java? It has to
be green in order for the link to work.

Eugene


Reply to: