[Debian-med-packaging] Bug#697604: Please help with Java issue where it seems to make a difference where JAR is installed
Olivier Sallou
olivier.sallou at irisa.fr
Wed Jun 5 14:29:46 UTC 2013
On 06/05/2013 04:27 PM, Olivier Sallou wrote:
>
> On 06/05/2013 01:34 PM, Andreas Tille wrote:
>> Hi,
>>
>> according to a hint on debian-mentors it seems to be a good idea to drop
>> a note here if Java is involved. Please CC me, because I'm not
>> subscribed.
> Hi,
> sorry I missed previous mails about this. I should need a deeper look
> but indeed "ClassLoader.getSystemResource"
> will load in wrong location for you. It gonna search within the
> virtual directory of the jar file, not in the other jar files set in
> the classpath.
>
>
> I do not know how to search within an other jar, but if issue is only
> an icon matter, the package could copy the
> /usr/share/fastqc/Templates/Icons directory (from Templates in fact)
> in the package structure. This is a duplication but not a big deal for
> a few icons (and no security issue).
>
> Olivier
Maybe something like:
ClassFromFastQ.class.getClassLoader().getResource("Templates/Icons")
could work
>
>> Kind regards
>>
>> Andreas.
>>
>> ----- Forwarded message from Andreas Tille <andreas at an3as.eu> -----
>>
>> Date: Thu, 23 May 2013 16:36:37 +0200
>> From: Andreas Tille <andreas at an3as.eu>
>> To: control at bugs.debian.org, Debian Mentors List <debian-mentors at lists.debian.org>
>> Subject: Please help with Java issue where it seems to make a difference where JAR is installed
>>
>> tags 697604 help
>> thanks
>>
>> Hi,
>>
>> I'm a bit lost with my bit of Java knowledge if it comes to internals.
>> I can only confirm that I can perfectly reproduce the problem using the
>> data file submitted in [1] for testing and one reporter states in [2]:
>>
>> I downloaded upstream FastQC and there was no such problem. The only
>> difference that I see is that in Debian a fastqc.jar is used while in
>> upstream it's unpacked in the root directory. My conclusion is that this
>> specific way with getSystemResource searches only the location where
>> main class resides. In Debian's case it's fastqc.jar and in upstream
>> it's FastQC directory.
>>
>> Any help is really welcome
>>
>> Andreas.
>>
>>
>> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697604#15
>> [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697604#5
>>
>
> --
> Olivier Sallou
> IRISA / University of Rennes 1
> Campus de Beaulieu, 35000 RENNES - FRANCE
> Tel: 02.99.84.71.95
>
> gpg key id: 4096R/326D8438 (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
>
--
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95
gpg key id: 4096R/326D8438 (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20130605/6417a382/attachment.html>
More information about the Debian-med-packaging
mailing list