Login  Register

Re: ImageJ as an applet and plugin support

Posted by Wayne Rasband on Jan 28, 2006; 3:30pm
URL: http://imagej.273.s1.nabble.com/ImageJ-as-an-applet-and-plugin-support-tp3703919p3703920.html

> Hello,
> I am using ImageJ 1.35l on Windows XP.  Both it and a plugin I've  
> written work fine run as a Java application.
>
> Now I would like to run them as an applet.  I copied the code of  
> "http://rsb.info.nih.gov/ij/applet2/" into my own ImageJ directory  
> and ran it from my browser.  ImageJ loads; however, it gives the  
> following error message when it tries to open the image:
>    "access denied (java.net.SocketPermission rsb.info.nih.gov resolve)
>
>    http://rsb.info.nih.gov/ij/images/FluorescentCells.jpg"

Unsigned applets can only download images from the server they were  
loaded from. You will need to either copy the images to your server  
and edit the applet tag to reflect the new address, or to sign the  
applet. Michael Abramoff has a signed ImageJ applet at

      http://bij.isi.uu.nl/applet.htm

and instructions explaining how he signed it.

> Also, the plugins do not appear in the applet.  I've read on other  
> example sites that either ij.jar needs to be rewritten or an  
> additional file needs to be included, but I have not seen any what  
> needs to be added.

The plugins have to be added to ij.jar and you need to edit the  
IJ_Props.txt file to add them to the Plugins menu. The plugins must  
be at the root level of the jar file, along with IJ_Props.txt and  
about.jpg. You can use the jar utility that comes with the Sun JDK to  
extract the files from jar files and to build new jar files.

-wayne