[jdom-interest] Re: TODO.TXT: jdom.jar main method and class

Joseph Bowbeer jozart at csi.com
Thu Feb 22 21:20:42 PST 2001

I'm familiar with executable .jar files, but JDOM is not a server, and I
don't know of any pure libraries that are executable.

I'm concerned about adding anything to the default package.  (What if
everyone did that?)

----- Original Message -----
From: "Jason Hunter" <jhunter at collab.net>
To: "Joseph Bowbeer" <jozart at csi.com>
Cc: <jdom-interest at jdom.org>
Sent: Thursday, February 22, 2001 9:08 PM
Subject: Re: [jdom-interest] Re: TODO.TXT: jdom.jar main method and class

> I'm wondering about the idea of making jdom.jar executable.
> I wouldn't expect anything in my /lib/ext to be executable, and I'm a
> concerned about adding a Main class to the default package in every JDOM
> user's classpath.

It's common for JAR files these days to be executable.  For example, you
start the Orion app server by executing its JAR.  In the manifest you
can point at a class to execute.  For this scheme we'll have a little
Main class that uses the JDOM classes to read and display its info.xml
information.  Most packages would just leave info.xml static for manual
reading, but we can have our easter egg.  :-)

> Failing that, would it be preferable to put Main in *some* package?  For
> example: org.jdom.info

That would make it part of JDOM itself.  If it's not in org.jdom it's
ancillary.  In other words, when we write the JDOM spec, this won't be
in there.


More information about the jdom-interest mailing list