<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 06/05/2013 04:27 PM, Olivier Sallou
      wrote:<br>
    </div>
    <blockquote cite="mid:51AF4AC5.2050201@irisa.fr" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <br>
      <div class="moz-cite-prefix">On 06/05/2013 01:34 PM, Andreas Tille
        wrote:<br>
      </div>
      <blockquote cite="mid:20130605113457.GF20010@an3as.eu" type="cite">
        <pre wrap="">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.</pre>
      </blockquote>
      Hi,<br>
      sorry I missed previous mails about this. I should need a deeper
      look but indeed
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      "ClassLoader.getSystemResource"<br>
      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.<br>
      <br>
      <br>
      I do not know how to search within an other jar, but if issue is
      only an icon matter, the package could copy the
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      /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).<br>
      <br>
      Olivier<br>
    </blockquote>
    Maybe something like:<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    ClassFromFastQ.class.getClassLoader().getResource("Templates/Icons")<br>
    <br>
    could work<br>
    <blockquote cite="mid:51AF4AC5.2050201@irisa.fr" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <span style="color: rgb(60, 60, 60); font-family: sans-serif;
        font-size: 15px; font-style: normal; font-variant: normal;
        font-weight: normal; letter-spacing: normal; line-height: 18px;
        orphans: auto; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: auto;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(240, 240, 240); display: inline
        !important; float: none;"><span class="Apple-converted-space"><br>
        </span></span>
      <blockquote cite="mid:20130605113457.GF20010@an3as.eu" type="cite">
        <pre wrap="">
Kind regards

       Andreas.

----- Forwarded message from Andreas Tille <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:andreas@an3as.eu"><andreas@an3as.eu></a> -----

Date: Thu, 23 May 2013 16:36:37 +0200
From: Andreas Tille <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:andreas@an3as.eu"><andreas@an3as.eu></a>
To: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:control@bugs.debian.org">control@bugs.debian.org</a>, Debian Mentors List <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:debian-mentors@lists.debian.org"><debian-mentors@lists.debian.org></a>
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] <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697604#15">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697604#15</a>
[2] <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697604#5">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697604#5</a>

</pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
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

</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
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

</pre>
  </body>
</html>