Including packages

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

Including packages

Frederic V. Hessman
I want to put lots of semi-generic classes into an "astroj" package  
to be able to use them in other contexts than the standard Astronomy  
plugins (http://www.astro.physik.uni-goettingen.de/~hessman/ImageJ/ 
Astronomy/), so I stuck "package astroj;" in those routines, put them  
in their own directory, and put "include astroj.*;" in the plugins.    
After creating astroj.jar, I tried putting it in various places, but  
can't seem to get it to be acknowledged by default.

Of course, I can stick it in a standard place for general purpose  
jars, but other plugins seem to get away with simply being in the  
ImageJ plugins directory.  Do I need a special manifest, or what?

Rick

------------------------------------------------------------------------
------------------------
Dr. Frederic V. Hessman     [hidden email]
Institut für Astrophysik          Tel.  +49-551-39-5052
Friedrich-Hund-Platz 1         Fax +49-551-39-5043
37077 Goettingen                 Room F04-133
http://www.Astro.physik.Uni-Goettingen.de/~hessman
------------------------------------------------------------------------
-------------------------
MONET: a MOnitoring NEtwork of Telescopes
http://monet.Uni-Goettingen.de
------------------------------------------------------------------------
-------------------------
Reply | Threaded
Open this post in threaded view
|

Re: Including packages

Albert Cardona
you need a plugins.config file in the jar:

http://rsb.info.nih.gov/ij/plugins/jar-demo.html

Albert
Reply | Threaded
Open this post in threaded view
|

Re: Including packages

Wayne Rasband
A JAR file that contains only library classes does not need a
plugins.config file and does not need an underscore in its name. A JAR
file that contains a single plugin also does not need a plugins.config
file but it does need an underscore in its name. A library JAR file
does need to have a directory structure that mirrors the package
structure of its classes.

-wayne

On Feb 12, 2007, at 4:20 PM, Albert Cardona wrote:

> you need a plugins.config file in the jar:
>
> http://rsb.info.nih.gov/ij/plugins/jar-demo.html
>
> Albert
>