Login  Register

Re: ImageJ Applet and Macros

Posted by StrongSteve on Feb 02, 2008; 5:22pm
URL: http://imagej.273.s1.nabble.com/ImageJ-Applet-and-Macros-tp3697304p3697306.html

I have unpacked and put them in one signed jar file as you can see from the package structure. But the problem is, that the class loader always throws an exception when I try to class-load a class from inside this jar-file and i do not know why.

Greetings
Stefan

Sami Badawi-2 wrote
In order for the applet to see all your jar files you have to all them all
to the applet html tag:

    <applet code=Animator.class
      archive="classes.jar ,  images.jar ,  sounds.jar"
      width=460 height=160>
     
    </applet>

See:
http://java.sun.com/j2se/1.5.0/docs/guide/jar/jarGuide.html

In order for ImageJ to see plugin jar you normally have to have them in the
plugin directory. I am not sure how you get around this.
Maybe you can unpack the windowLevelMacro.jar and put the code in with you
own code. Otherwise you would also have to sign both of them.

-Sami Badawi
http://www.shapelogic.org