Aw: Re: Help needed for tn-seqexplorer Java package

2017-05-09 Thread Felix Natter

hello Olivier, hello Andreas,

 

> I do not know how to include resources in jar with jh_build, never did
> it before, but Java team should be able to answer this

 

See this rules file:


https://anonscm.debian.org/cgit/pkg-java/libjsyntaxpane-java.git/tree/debian/rules

 

Cheers and Best Regards,

Felix





Re: Help needed for tn-seqexplorer Java package

2017-05-09 Thread Olivier Sallou


On 05/09/2017 01:20 PM, Andreas Tille wrote:
> Hi Olivier,
>
> On Tue, May 09, 2017 at 11:46:51AM +0200, Olivier Sallou wrote:
>>> $ tn-seqexplorer 
>>> Exception in thread "main" java.lang.NullPointerException
>>> at sun.awt.SunToolkit.getImageFromHash(SunToolkit.java:725)
>>> at sun.awt.SunToolkit.getImage(SunToolkit.java:759)
>>> at GUI.LegalDisclaimer.(LegalDisclaimer.java:24)
>>> at essgenes.Main.main(Main.java:43)
>> It seems it does not find in jar file the file
>> /resources/legaldisplaimer.png
>>
>> A resource file has not been included in the jar file. You can check
>> with jar -tf yourjarfile to see if it is present (but I don't think so
>> as I see no resource not png file in src)
>> As it is an icon, you could simply comment line 24 of
>> src/GUI/LegalDisplaimer.java, line 24 to fix the issue
> Hmmm, I think I've got it wrong.  The needed files are now inside the
> upstream tarball (+Git archive) and I installed the files into the
> package and fixed the explicite PATH.  However, you said the resources
> need to be inside the JAR and I have no idea how to approach this by
> using jh_build.
>
> Any idea how to include the resources into the JAR instead just into
> the file system?
I do not know how to include resources in jar with jh_build, never did
it before, but Java team should be able to answer this
>
> Kind regards
>
>  Andreas.
>
 [1] https://anonscm.debian.org/git/debian-med/tn-seqexplorer.git

-- 
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



Re: Help needed for tn-seqexplorer Java package

2017-05-09 Thread Andreas Tille
Hi Olivier,

On Tue, May 09, 2017 at 11:46:51AM +0200, Olivier Sallou wrote:
> > $ tn-seqexplorer 
> > Exception in thread "main" java.lang.NullPointerException
> > at sun.awt.SunToolkit.getImageFromHash(SunToolkit.java:725)
> > at sun.awt.SunToolkit.getImage(SunToolkit.java:759)
> > at GUI.LegalDisclaimer.(LegalDisclaimer.java:24)
> > at essgenes.Main.main(Main.java:43)
> 
> It seems it does not find in jar file the file
> /resources/legaldisplaimer.png
> 
> A resource file has not been included in the jar file. You can check
> with jar -tf yourjarfile to see if it is present (but I don't think so
> as I see no resource not png file in src)
> As it is an icon, you could simply comment line 24 of
> src/GUI/LegalDisplaimer.java, line 24 to fix the issue

Hmmm, I think I've got it wrong.  The needed files are now inside the
upstream tarball (+Git archive) and I installed the files into the
package and fixed the explicite PATH.  However, you said the resources
need to be inside the JAR and I have no idea how to approach this by
using jh_build.

Any idea how to include the resources into the JAR instead just into
the file system?

Kind regards

 Andreas.

> >> [1] https://anonscm.debian.org/git/debian-med/tn-seqexplorer.git

-- 
http://fam-tille.de



Re: Bug#859660: Bug#859660: artemis running issue

2017-05-09 Thread Andreas Tille
Hi Jerome,

On Mon, May 08, 2017 at 01:42:40PM -0500, Jerome wrote:
> I put here the results of the commands. Home that helps...

I think so since it confirms the expected reason for the issue you
observed.
 
> $ sudo update-binfmts --display jarwrapper
> update-binfmts: warning: jarwrapper not in database of installed binary
> formats.
> update-binfmts: exiting due to previous errors
> $ sudo update-binfmts --display jar
> update-binfmts: warning: jar not in database of installed binary formats.
> update-binfmts: exiting due to previous errors

I have access to two different boxes, one running Jessie (stable):

$ sudo update-binfmts --display jarwrapper
[sudo] password for tillea: 
jarwrapper (enabled):
 package = 
type = magic
  offset = 0
   magic = PK\x03\x04
mask = 
 interpreter = /usr/bin/jarwrapper
detector = /usr/bin/jardetector

$ sudo update-binfmts --display jar
jar (enabled):
 package = openjdk-7
type = magic
  offset = 0
   magic = PK\x03\x04
mask = 
 interpreter = /usr/bin/jexec
detector = 


and one running Stretch (testing):


$ sudo update-binfmts --display jarwrapper
jarwrapper (enabled):
 package = jarwrapper
type = magic
  offset = 0
   magic = PK\x03\x04
mask = 
 interpreter = /usr/bin/jarwrapper
detector = /usr/bin/jardetector
$ sudo update-binfmts --display jar
jar (enabled):
 package = openjdk-7
type = magic
  offset = 0
   magic = PK\x03\x04
mask = 
 interpreter = /usr/bin/jexec
detector = 


Could you please post the result of

   apt-cache policy jarwrapper

make sure it is installed

   sudo apt-get install jarwrapper

and try again?   If artemis works afterwards the solution would be to
add jarwrapper to the dependencies (hmmm, I somehow assumed that this
would be the case but its not. :-()

Thanks for your patience

   Andreas.


-- 
http://fam-tille.de



Re: Help needed for tn-seqexplorer Java package

2017-05-09 Thread Olivier Sallou


On 05/08/2017 01:08 PM, Andreas Tille wrote:
> Hi again,
>
> On Sat, May 06, 2017 at 09:23:27AM +0200, Andreas Tille wrote:
>> I intend to package tn-seqexplorer[1].  I have removed all JAR files
>> upstream included into the sources and managed to replace several by
>> Debian packages.  I also packaged libexternalsortinginjava-java[2] which
>> is used by tn-seqexplorer and uploaded it to new.
> Meanwhile libexternalsortinginjava-java was accepted in unstable (thanks
> to ftpmaster for fast processing).  I also somehow managed to work around
> the other build issues.  Now I'm stumbling upon the fact that the program
> does not run:
>
> $ tn-seqexplorer 
> Exception in thread "main" java.lang.NullPointerException
> at sun.awt.SunToolkit.getImageFromHash(SunToolkit.java:725)
> at sun.awt.SunToolkit.getImage(SunToolkit.java:759)
> at GUI.LegalDisclaimer.(LegalDisclaimer.java:24)
> at essgenes.Main.main(Main.java:43)

It seems it does not find in jar file the file
/resources/legaldisplaimer.png

A resource file has not been included in the jar file. You can check
with jar -tf yourjarfile to see if it is present (but I don't think so
as I see no resource not png file in src)
As it is an icon, you could simply comment line 24 of
src/GUI/LegalDisplaimer.java, line 24 to fix the issue


Olivier

>
>
> Any hint what might be wrong here?
>
> Kind regards
>
>  Andreas.
>  
>
>> [1] https://anonscm.debian.org/git/debian-med/tn-seqexplorer.git
>> [2] https://anonscm.debian.org/git/pkg-java/libexternalsortinginjava-java.git

-- 
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