applet and macros

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

applet and macros

James Norman
Hello,
I'm using ImageJ for a project as an Applet and am having some problems
loading libraries for use in macros.  I have the file "StartupMacros.txt" in
the same directory that the applet is loaded from and can load the macros
specified in this file.  The issue is when one of my macros has a "Selected"
function and calls some code, I get an error saying the class cannot be
loaded.  This is the line in the macro file:

macro "Roi Nudge Tool
Selected"{call('edu.ucla.alger.pushtool.RoiPushTool.initialize');}
And the error is:
"Could not load class edu.ucla.alger.pushtool.RoiPushTool line 263"...

I have this class bundled inside of the IJ.jar file that is loaded for the
applet, and can run it locally and start the macro.  Is this a possible
classloader issue in how code is loaded differently for applets?

Any ideas on how I can solve this or a workaround.  I am compiling ImageJ
myself so I could manually add this function to the toolbar, but would
prefer not to as it looks like there is no straightforward way to do this.

Thanks for any help.

-james