Login  Register

Re: passing image to ImageJ via Java Web Start

Posted by arnim.jenett on Feb 02, 2010; 3:26pm
URL: http://imagej.273.s1.nabble.com/passing-image-to-ImageJ-via-Java-Web-Start-tp3689525p3689527.html

Hi Bill,
thanks you very much for the nice reply.
I followed the link you send using firefox or safari (java 1.6, mac os
x, 10.5.8), but I was not able to run any of the movies you link to.
ImageJ opens via Java Web Start, but without any data. That makes me
think, that maybe something in the configuration of my local system is
not right. on a different machine I got an error message stating, that
"this macro needs 32bit Java" which makes sense, because both machines
are running 64bit Javas and I know that the movie player (Quicktime) in
ImageJ only works on 32bit-systems. therefore ,if you use the movie
player, the web start including a movie can not work on 64bit-systems,
which still is a pity.

Principally I like the idea of dynamically written macros called by an
autorun-macro. Would you mind to share some code? Maybe I can modify it
to my needs. I just need to open jpgs. that should be possible with the
construct you are using.

Thanks,
aRnim


On 1/31/10 8:56 PM Bill Mohler [via ImageJ] wrote:

> I've been fiddling with this myself. Can't do it just in the jnlp, from
> my asking around.
>
> My solution is currently to have an autorun startup macro in the ij.jar
> called by my jnlp file. The autorun macro simply runs another macro from
> a file at a url. The second macro contains a line that opens a movie
> file. This might work for your images too. I have a Perl script that
> actually rewrites the second server-side macro file to point to an
> arbitrary selection from a movie collection, based on a user mouse click
> in a web page.
>
> Try clicking a "...Mov" link @ http://glowormnotes.blogspot.com to see
> an example at work.
>
> I can send you code bits as well.
>
> Bill
>
>  
>
>
> arnim.jenett wrote:
>
>  > Hi,
>  > is there a way to pass the path of an image to imagej when it is
> called by
>  > Java Web Start?
>  >
>  > Situation: I created a catalog of images using html. these images I
>  > currently can open in ImageJA (applet), but 1) after a couple of
> images I
>  > reliably run into a an "out-of-memory" exception and 2) on a weak
> network it
>  > is rather slow to download Imagej every time I call it (often).
>  > Therefore I thought about using Java Web Start instead and found the
>  > corresponding jnpls ( thanks dscho, curtis and wayne). But there is
> no way
>  > documented how I could pass image information via the jnpl to ImageJ.
>  >
>  > for clarification; from a shell I would do this like this:
>  > #!/bin/sh
>  > java -jar /full/path/to/ImageJ/ij.jar -ijpath /full/path/to/ImageJ
>  > /full/path/to/my/image
>  >
>  > reading up on this I hoped it would be as easy as passing the image
> to the
>  > call of ij.jar, so in the ImageJ.jnpl I changed
>  >
>  >     <jar href="http://rsb.info.nih.gov/ij/signed-applet/ij.jar"/>
>  >
>  > into
>  >
>  >     <jar
>  >
> href="http://rsb.info.nih.gov/ij/signed-applet/ij.jar?arg=/tests/Photo1.jpg"/>
>
>  >
>  > but that does not work.
>  > I also tried to pass it as "<argument>" from inside the
> "<application-desc>"
>  > but that failed as well.
>  >
>  > even nicer would be, if I could call the jnpl with the image's
> parameters
>  > (in hmtl).
>  > Does something like this exist?
>  > Thanks,
>  > aRnim
>  >  
>
>
> ------------------------------------------------------------------------
> View message @
> http://n2.nabble.com/passing-image-to-ImageJ-via-Java-Web-Start-tp4490759p4492093.html 
>
> To unsubscribe from passing image to ImageJ via Java Web Start, click
> here
> <http://n2.nabble.com/subscriptions/Unsubscribe.jtp?code=amVuZXR0YUBqYW5lbGlhLmhobWkub3JnfDQ0OTA3NTl8LTIzNTM0MjcyMw==>.
>
>

jenetta.vcf (310 bytes) Download Attachment