Bug#732222: Bug#732222: imagej: does not "see" present JAVA
On 12/16/2013 01:47 PM, Martin Weiser wrote: > Andreas Tille píše v Po 16. 12. 2013 v 13:33 +0100: >> Hi Martin, >> >> On Mon, Dec 16, 2013 at 12:55:33PM +0100, Martin Weiser wrote: >>> Dear friends, >>> >>> maybe there is something else involved (should I open another bug?), as >>> Olivier's workaround helps only partially: >>> >>> me@here:~$ export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386 >>> me@here:~$ echo $JAVA_HOME >>> /usr/lib/jvm/java-1.7.0-openjdk-i386 >>> me@here:~$ imagej >>> Open other images in this ImageJ panel as follows: >>> imagej -p 1 [ ... ] >>> >>> Exception in thread "main" java.awt.HeadlessException >>> at >>> java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207) >>> at java.awt.Window.(Window.java:535) >>> at java.awt.Frame.(Frame.java:420) >>> at ij.ImageJ.(ImageJ.java:129) >>> at ij.ImageJ.main(ImageJ.java:597) >>> >>> Any advice? >>> Once again: thank you for your patience. You may be running an application that requires a graphical mode in non graphical environment. There is an option in java to run in headless mode (when no graphics are available): java -Djava.awt.headless=true Please update the imagej script to try this. this however only works when original code manage this correctly. Olivier >> Please try the script: >> >> >> http://anonscm.debian.org/viewvc/debian-med/trunk/packages/imagej/trunk/debian/imagej.sh?view=markup >> >> which is the usual wrapper around imagej with a patch that should properly >> select the JAVA_HOME. >> >> It would be nice to know whether this would help or not. >> >> Kind regards >> >> Andreas. >> > Hi Andreas, > > unfortunately, the same behaviour occurs: > > louskacek@zouzel:~$ chmod 777 imagej.sh > louskacek@zouzel:~$ ./imagej.sh > Open other images in this ImageJ panel as follows: > imagej -p 1 [ ... ] > > Exception in thread "main" java.awt.HeadlessException > at > java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207) > at java.awt.Window.(Window.java:535) > at java.awt.Frame.(Frame.java:420) > at ij.ImageJ.(ImageJ.java:129) > at ij.ImageJ.main(ImageJ.java:597) > > Any advice? > Best, > Martin. > > > -- > gpg key id: 4096R/326D8438 (keyring.debian.org) > Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
Bug#732222: Bug#732222: imagej: does not "see" present JAVA
Hi Martin, On Mon, Dec 16, 2013 at 01:47:59PM +0100, Martin Weiser wrote: > Andreas Tille píše v Po 16. 12. 2013 v 13:33 +0100: > > Please try the script: > > > > > > http://anonscm.debian.org/viewvc/debian-med/trunk/packages/imagej/trunk/debian/imagej.sh?view=markup > > > > which is the usual wrapper around imagej with a patch that should properly > > select the JAVA_HOME. > > > > It would be nice to know whether this would help or not. > > > > Kind regards > > > > Andreas. > > > > Hi Andreas, > > unfortunately, the same behaviour occurs: > > louskacek@zouzel:~$ chmod 777 imagej.sh > louskacek@zouzel:~$ ./imagej.sh > Open other images in this ImageJ panel as follows: > imagej -p 1 [ ... ] > > Exception in thread "main" java.awt.HeadlessException Could you possibly add a set -x on top of the script? Thanks Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#732222: Bug#732222: imagej: does not "see" present JAVA
Andreas Tille píše v Po 16. 12. 2013 v 13:33 +0100: > Hi Martin, > > On Mon, Dec 16, 2013 at 12:55:33PM +0100, Martin Weiser wrote: > > Dear friends, > > > > maybe there is something else involved (should I open another bug?), as > > Olivier's workaround helps only partially: > > > > me@here:~$ export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386 > > me@here:~$ echo $JAVA_HOME > > /usr/lib/jvm/java-1.7.0-openjdk-i386 > > me@here:~$ imagej > > Open other images in this ImageJ panel as follows: > > imagej -p 1 [ ... ] > > > > Exception in thread "main" java.awt.HeadlessException > > at > > java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207) > > at java.awt.Window.(Window.java:535) > > at java.awt.Frame.(Frame.java:420) > > at ij.ImageJ.(ImageJ.java:129) > > at ij.ImageJ.main(ImageJ.java:597) > > > > Any advice? > > Once again: thank you for your patience. > > Please try the script: > > > http://anonscm.debian.org/viewvc/debian-med/trunk/packages/imagej/trunk/debian/imagej.sh?view=markup > > which is the usual wrapper around imagej with a patch that should properly > select the JAVA_HOME. > > It would be nice to know whether this would help or not. > > Kind regards > > Andreas. > Hi Andreas, unfortunately, the same behaviour occurs: louskacek@zouzel:~$ chmod 777 imagej.sh louskacek@zouzel:~$ ./imagej.sh Open other images in this ImageJ panel as follows: imagej -p 1 [ ... ] Exception in thread "main" java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207) at java.awt.Window.(Window.java:535) at java.awt.Frame.(Frame.java:420) at ij.ImageJ.(ImageJ.java:129) at ij.ImageJ.main(ImageJ.java:597) Any advice? Best, Martin. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#732222: Bug#732222: imagej: does not "see" present JAVA
Hi Martin, On Mon, Dec 16, 2013 at 12:55:33PM +0100, Martin Weiser wrote: > Dear friends, > > maybe there is something else involved (should I open another bug?), as > Olivier's workaround helps only partially: > > me@here:~$ export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386 > me@here:~$ echo $JAVA_HOME > /usr/lib/jvm/java-1.7.0-openjdk-i386 > me@here:~$ imagej > Open other images in this ImageJ panel as follows: > imagej -p 1 [ ... ] > > Exception in thread "main" java.awt.HeadlessException > at > java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207) > at java.awt.Window.(Window.java:535) > at java.awt.Frame.(Frame.java:420) > at ij.ImageJ.(ImageJ.java:129) > at ij.ImageJ.main(ImageJ.java:597) > > Any advice? > Once again: thank you for your patience. Please try the script: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/imagej/trunk/debian/imagej.sh?view=markup which is the usual wrapper around imagej with a patch that should properly select the JAVA_HOME. It would be nice to know whether this would help or not. Kind regards Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#732222: Bug#732222: imagej: does not "see" present JAVA
Andreas Tille píše v Po 16. 12. 2013 v 09:39 +0100: > Hi Olivier, > > On Mon, Dec 16, 2013 at 09:14:06AM +0100, Olivier Sallou wrote: > > > here is the result: > > > > > > java-gcj-4.7 /usr/lib/jvm/java-gcj-4.7 > > > java-1.6.0-openjdk-i386 1061 /usr/lib/jvm/java-1.6.0-openjdk-i386 > > > java-1.7.0-openjdk-i386 1051 /usr/lib/jvm/java-1.7.0-openjdk-i386 > > I submitted a patch to SVN that picks always the latest openjdk version. > > > In the meanwhile, setting: > > > > #export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386 > > #imagej > > > > should work > > My patch should have the same effect. Some testing / sanity check of > the wrapper script would be helpful. Generally spoken I'd be happy if > somebody could revise the script since Paolo who did invent the script > seems to be not active any more on imagej packaging. > > Kind regards > >Andreas. > Dear friends, maybe there is something else involved (should I open another bug?), as Olivier's workaround helps only partially: me@here:~$ export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386 me@here:~$ echo $JAVA_HOME /usr/lib/jvm/java-1.7.0-openjdk-i386 me@here:~$ imagej Open other images in this ImageJ panel as follows: imagej -p 1 [ ... ] Exception in thread "main" java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207) at java.awt.Window.(Window.java:535) at java.awt.Frame.(Frame.java:420) at ij.ImageJ.(ImageJ.java:129) at ij.ImageJ.main(ImageJ.java:597) Any advice? Once again: thank you for your patience. With the best regards, Martin. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#732222: Bug#732222: imagej: does not "see" present JAVA
Hi Olivier, On Mon, Dec 16, 2013 at 09:14:06AM +0100, Olivier Sallou wrote: > > here is the result: > > > > java-gcj-4.7 /usr/lib/jvm/java-gcj-4.7 > > java-1.6.0-openjdk-i386 1061 /usr/lib/jvm/java-1.6.0-openjdk-i386 > > java-1.7.0-openjdk-i386 1051 /usr/lib/jvm/java-1.7.0-openjdk-i386 I submitted a patch to SVN that picks always the latest openjdk version. > In the meanwhile, setting: > > #export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386 > #imagej > > should work My patch should have the same effect. Some testing / sanity check of the wrapper script would be helpful. Generally spoken I'd be happy if somebody could revise the script since Paolo who did invent the script seems to be not active any more on imagej packaging. Kind regards Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org