Login  Register

Re: ImageJ on ACER Aspire One

Posted by Gabriel Landini on Aug 25, 2008; 7:58pm
URL: http://imagej.273.s1.nabble.com/ImageJ-on-ACER-Aspire-One-tp3695298p3695302.html

On Monday 25 August 2008, Jon Harman wrote:

> Now that I have ImageJ on my AA1 I want the world!  Or at any rate it
> would be nice to be able to use the right click context menu to open
> ImageJ on an image file.  There is an "open with custom application
> option" but when I point that to the "run" script it only opens ImageJ,
> without the file.  Is there any way in Linux that I can pass the image
> file name to ImageJ?
>
> By the way the benchmark for ImageJ on the AA1 is 3.116 seconds.  Not
> bad, better than my HP laptop bought a few years ago.
>
> Jon
>
> My run file:
> cd /home/user/ImageJ
> /usr/java/jre1.6.0_07/bin/java -Xmx256m -cp ij.jar:tools.jar ij.ImageJ


My run file can open images from the right click:

cd ~/ImageJ
/usr/lib/jvm/java-1.6.0/bin/java -Xmx900m -cp  
ij.jar:jimi.jar:/usr/lib/jvm/java-1.6.0/lib/tools.jar ij.ImageJ $*


(mind the line breaks) so just add a $* at the end of your 2nd line.

In my case the java-1.6.0 is a link to the real folder where java is
installed. That way, when you update java, you do not have to update your
script, only the link where java-1.6.0 is pointing to.

Cheers

G.