Re: How can I run ImageJ with Java 1.6 on my MacBook?
Posted by Wayne Rasband on
URL: http://imagej.273.s1.nabble.com/How-can-I-run-ImageJ-with-Java-1-6-on-my-MacBook-tp3691203p3691204.html
> I have a MacBook running Mac OS X 10.5.8 with
> 1 GB of RAM. I would like to use Jerek Sacha's
> ij-plugins-toolkit, but they require Java 1.6.
>
> I have Java SE 1.6 64 bit on this Mac as well as Java 1.5,
> but the ImageJ Installation page mentions ImageJ will only
> use Java 1.6 if the machine has more than 2.5 GB RAM.
>
> So is there any way to convince my copy of ImageJ to
> use Java 1.6 without stuffing more RAM into my MacBook?
ImageJ for Mac OS X comes with two applications (launchers), ImageJ and
ImageJ64. On Mac OS X 10.5 (Leopard), ImageJ uses a 32-bit version of
Java 1.5 and ImageJ64 uses a 64-bit version of Java 1.6. On Mac OS X
10.6 (Snow Leopard), ImageJ uses a 32-bit version of Java 1.6 and
ImageJ64 uses a 64-bit version of Java 1.6. ImageJ64 is much faster
than ImageJ but it crashes more often and it is not able to run
commands, such as File>Import> Using QuickTime, that use QuickTime for
Java. Image64 does not required 2.5 GB or RAM but it is able to use
more than 1.8 GB if you have more than 2 GB installed.
I did some benchmarking and found that the getPixel() method is ~4
times faster when running ImageJ64. It is as fast as directly accessing
the pixel data, which means that Java 1.6 must be inlining the
getPixel() method.
-wayne