The new ImageJ launcher

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

The new ImageJ launcher

E. Kaplan
I installed ImageJ on a new Windows XP machne, where java 1.5 had been
installed already.  When I open images in it, they are solid black.  
When I try to open the sample images, they too are black.
Something is wrong somewhere?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: The new ImageJ launcher

Luciano Marpegan
Hi everybody, I had the same problem than E.Kaplan and I found some
curious things. The images are completely black when opened but if I
zoom in or out they are perfect. This happens with sample and my own
images. Sometimes when I try to open an image the displayed image is
not black but a weird composition of the last image opened (including
windows from other programs) but the correct image will be displayed
if I zoom in or out. I also found that when I try to use the B&C
control, a strange black image with weird patterns replace the
histogram (although the controls work properly).
Are these problems related to Windows XP?

At 03:36 PM 1/27/2006, you wrote:

>I installed ImageJ on a new Windows XP machne, where java 1.5 had been
>installed already.  When I open images in it, they are solid black.
>When I try to open the sample images, they too are black.
>Something is wrong somewhere?
>
>Thanks
Reply | Threaded
Open this post in threaded view
|

Re: The new ImageJ launcher

Wayne Rasband
> Hi everybody, I had the same problem than E.Kaplan and I found some  
> curious things. The images are completely black when opened but if  
> I zoom in or out they are perfect. This happens with sample and my  
> own images. Sometimes when I try to open an image the displayed  
> image is not black but a weird composition of the last image opened  
> (including windows from other programs) but the correct image will  
> be displayed if I zoom in or out. I also found that when I try to  
> use the B&C control, a strange black image with weird patterns  
> replace the histogram (although the controls work properly).
> Are these problems related to Windows XP?

It works fine for me on Windows XP.

What does the configuration file generated by the launcher  
(ImageJ.cfg) look like? What version of Java are you using? You can  
find out using the Help>About ImageJ command or the  
Plugins>Utilities>ImageJ Properties command.

Here are some test you can run to help us figure out what the problem  
is:

1. Run the ImageJ applet at <http://rsb.info.nih.gov/ij/applet/>. It  
should use the same version of Java as the new launcher.

2. Edit ImageJ.cfg to use a Java version that is known to work. For  
example, if you have a working version of ImageJ at C:\ImageJ, then  
change the 3 line ImageJ.cfg file to
    .
     C:\ImageJ\jre\bin\javaw.exe
     -Xmx300m -cp ij.jar ij.ImageJ

3. Try replacing the new launcher (ImageJ.exe) with a copy of the old  
launcher.

4. Install the latest J2SE SDK from Sun, delete ImageJ.cfg, and  
restart ImageJ. The new launcher will create a new ImageJ.cfg that  
uses the Java you just installed. Note that the "Compile and Run"  
command will not work if you install the smaller JRE from Sun.

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: The new ImageJ launcher

Hugo Gratama van Andel
Hello everybody,

The problem you are desribing sounds familiar to me. I once experienced
the same corrupt display of images(at 100%) before after upgrading the
JRE. Could it be that with the new launcher another JRE is used (or
automatically found) than before?
Lowering your Memory limit(for me <800MB) will propably let the problem
disapear. I upgraded the JRE to the 64bit JRE and now the problem
doesn't occur anymore.
Hugo


Rasband Wayne wrote:

>> Hi everybody, I had the same problem than E.Kaplan and I found some  
>> curious things. The images are completely black when opened but if  I
>> zoom in or out they are perfect. This happens with sample and my  own
>> images. Sometimes when I try to open an image the displayed  image is
>> not black but a weird composition of the last image opened  (including
>> windows from other programs) but the correct image will  be displayed
>> if I zoom in or out. I also found that when I try to  use the B&C
>> control, a strange black image with weird patterns  replace the
>> histogram (although the controls work properly).
>> Are these problems related to Windows XP?
>
>
> It works fine for me on Windows XP.
>
> What does the configuration file generated by the launcher  (ImageJ.cfg)
> look like? What version of Java are you using? You can  find out using
> the Help>About ImageJ command or the  Plugins>Utilities>ImageJ
> Properties command.
>
> Here are some test you can run to help us figure out what the problem  is:
>
> 1. Run the ImageJ applet at <http://rsb.info.nih.gov/ij/applet/>. It  
> should use the same version of Java as the new launcher.
>
> 2. Edit ImageJ.cfg to use a Java version that is known to work. For  
> example, if you have a working version of ImageJ at C:\ImageJ, then  
> change the 3 line ImageJ.cfg file to
>    .
>     C:\ImageJ\jre\bin\javaw.exe
>     -Xmx300m -cp ij.jar ij.ImageJ
>
> 3. Try replacing the new launcher (ImageJ.exe) with a copy of the old  
> launcher.
>
> 4. Install the latest J2SE SDK from Sun, delete ImageJ.cfg, and  restart
> ImageJ. The new launcher will create a new ImageJ.cfg that  uses the
> Java you just installed. Note that the "Compile and Run"  command will
> not work if you install the smaller JRE from Sun.
>
> -wayne
>

--
Hugo Gratama van Andel - MSc
Academic Medical Centre - University of Amsterdam
Dept. Medical Physics      L0-152
Meibergdreef 9
1105 AZ Amsterdam
The Netherlands
Phone  :  +31 20 566 5206
FAX    :  +31 20 691 7233
e-mail :  [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: The new ImageJ launcher

Luciano Marpegan
Well, I tried with Hugo's suggestion of lowering the memory limit
(from 1.3GB to 700 MB) and the new launcher is working perfectly now.
Just in case it's still useful, I'm running on
Windows XP service pack2,
ImageJ 1.35o,
Java1.5.0_03
1.3 GB memory limit (now 700 MB)

Best,
Luciano

At 01:52 AM 1/30/2006, you wrote:

>Hello everybody,
>
>The problem you are desribing sounds familiar to me. I once experienced
>the same corrupt display of images(at 100%) before after upgrading the
>JRE. Could it be that with the new launcher another JRE is used (or
>automatically found) than before?
>Lowering your Memory limit(for me <800MB) will propably let the problem
>disapear. I upgraded the JRE to the 64bit JRE and now the problem
>doesn't occur anymore.
>Hugo
>
>Rasband Wayne wrote:
> >> Hi everybody, I had the same problem than E.Kaplan and I found some
> >> curious things. The images are completely black when opened but if  I
> >> zoom in or out they are perfect. This happens with sample and my  own
> >> images. Sometimes when I try to open an image the displayed  image is
> >> not black but a weird composition of the last image opened  (including
> >> windows from other programs) but the correct image will  be displayed
> >> if I zoom in or out. I also found that when I try to  use the B&C
> >> control, a strange black image with weird patterns  replace the
> >> histogram (although the controls work properly).
> >> Are these problems related to Windows XP?
> >
> >
> > It works fine for me on Windows XP.
> >
> > What does the configuration file generated by the launcher  (ImageJ.cfg)
> > look like? What version of Java are you using? You can  find out using
> > the Help>About ImageJ command or the  Plugins>Utilities>ImageJ
> > Properties command.
> >
> > Here are some test you can run to help us figure out what the problem  is:
> >
> > 1. Run the ImageJ applet at
> <<http://rsb.info.nih.gov/ij/applet/>http://rsb.info.nih.gov/ij/applet/>. It
> > should use the same version of Java as the new launcher.
> >
> > 2. Edit ImageJ.cfg to use a Java version that is known to work. For
> > example, if you have a working version of ImageJ at C:\ImageJ, then
> > change the 3 line ImageJ.cfg file to
> >    .
> >     C:\ImageJ\jre\bin\javaw.exe
> >     -Xmx300m -cp ij.jar ij.ImageJ
> >
> > 3. Try replacing the new launcher (ImageJ.exe) with a copy of the old
> > launcher.
> >
> > 4. Install the latest J2SE SDK from Sun, delete ImageJ.cfg, and  restart
> > ImageJ. The new launcher will create a new ImageJ.cfg that  uses the
> > Java you just installed. Note that the "Compile and Run"  command will
> > not work if you install the smaller JRE from Sun.
> >
> > -wayne
> >
>
>--
>Hugo Gratama van Andel - MSc
>Academic Medical Centre - University of Amsterdam
>Dept. Medical Physics      L0-152
>Meibergdreef 9
>1105 AZ Amsterdam
>The Netherlands
>Phone  :  +31 20 566 5206
>FAX    :  +31 20 691 7233
>e-mail :  [hidden email]