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" 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. Are there any resources that I missed? Thanks, ~Thomas -- Thomas Kuo Graduate Student Electrical & Computer Engineering Department University of California Santa Barbara Email: [hidden email] |
> 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 |
Hi,
Any way to set or change the memory for an Applet? Jon Rasband Wayne wrote: >> 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 > |
> Any way to set or change the memory for an Applet?
You set the applet memory limit by entering something like -Xmx500m in the Java Plug-in's "Java Runtime Parameters" field. On Mac OS X, the Java Plugin (there is one for each version of Java) is in Applications/Utilities. On Windows, it is a Control Panel. With the signed version of the ImageJ applet now available at <http:// rsb.info.nih.gov/ij/signed-applet/>, you can also use the File>Open and File>Save As commands. -wayne |
Free forum by Nabble | Edit this page |