[jdom-interest] Re: get version info

Jason Hunter jhunter at apache.org
Thu Mar 7 15:02:02 PST 2002

Note that we removed the "java -jar jdom.jar" functionality recently. 
To run we had to have xerces or another parser listed as a class-path
and that caused applets to look for the class on the server.  Now you
can still type "java JDOMAbout" with the JAR in your classpath, but the
slick -jar feature isn't enabled.  For more info, see the archives.


Jon Baer wrote:
> Look in the /package directory of your JDOM ... you don't really need much
> except if you see /META-INF/info.xml that contain's the info, so all the jars
> like Ant, etc would need an XML parser, JDOM just assumes you already have
> one if you are using it, but Im sure an About.class would be nice for other
> things.  It's probably just a design decision to create a Main.class or
> About.class with your package.
> All you basically need to do is not set it inside a named package:
> About.class
> com.mypackage.MyClass.class
> Then when you run java -jar mylib.jar About ...
> You can run main(String[] args) and just return a static version string or
> some other info output.
> - Jon
> "Nagulapalli, Srinivas" wrote:
> > Jon Baer [mailto:jonbaer at digitalanywhere.com] wrote:
> > >Try:
> > >
> > >java -cp jdom.jar JDOMAbout
> > >
> >
> >   Thanks Jon, it truly works. I don't know why they don't write About
> > classes
> >   for other jar(s) like Ant's, (AntRunner) or log4j!! JDOM is leading the
> > way!
> >   I am just curious, if I make a jar of my project, what do I have to do
> >   to get the functionality that the command you wrote above gives?
> >   Thanks
> >   -Srini
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

More information about the jdom-interest mailing list