[collectd] java plugin class files
Amit Gupta
amit.gupta221 at gmail.com
Tue Sep 8 16:36:38 CEST 2009
On Tue, Sep 8, 2009 at 7:05 PM, Sebastian Harl <sh at tokkee.org> wrote:
> Hi Amit,
>
> On Tue, Sep 08, 2009 at 06:34:04PM +0530, Amit Gupta wrote:
> > I was wondering why the java plugin api class files are published under
> > share/collectd/java. Ideally, a java-plugin.jar file containing all the
> > class files should get published rather than the individual class files.
>
> That sounds like a good idea to me (from what I've seen so far this is
> the more common case in the Java world). I suppose that installing
> individual .class files was easier to implement for now and nobody
> bothered about changing that. Please feel free to provide a patch
> (remember to update the sample config in src/collectd.conf.in as well)
> ;-)
>
I will start working on the patch.
> > Additionally, the jar files IMO should get published to the lib directory
> > where the so files are sitting rather than the share directory.
>
> Why do you think so?
>
> If those files are architecture independent (which, I suppose, is the
> case, but I'm not sure how JNI has an effect on that), /usr/share/
> collectd/ is the right place for them (according to FHS).
>
I think of jar files equivalent of .so files. A jar file is used to ship
collection of java class files similar to a .so file which is a collection
of object files. If you look at any of the java based softwares, for
instance tomcat, you will find all the jars sitting in the lib directory.
Regards
Amit
> Cheers,
> Sebastian
>
> --
> Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
>
> Those who would give up Essential Liberty to purchase a little Temporary
> Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkqmXbgACgkQEFEKc4UBx/zEXgCffcvWsq/ptyfUAlBboSYpR4C8
> V2IAnRBXbJrf/iBYN63JkasDh7uKX/au
> =73lA
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20090908/5ec30b04/attachment.htm
More information about the collectd
mailing list