Re: How to add jdom library into my jar file in eclipse
JTL.zheng wrote:
I have used jdom in my codes ...
This one? <http://www.jdom.org/>
...so I must add the jdom library into my jar file ...
Must you? Is that what the JDOM documentation
says? That sounds very unusual.
Usually a library/API is distributed as .jar files,
and the way to use them is to ensure that they
are available on the application's *classpath* at
compile and (for deployment) runtime.
There are a number of ways to do that, for
deployment. One is to put the other jar's in
a path 'known to the application jar' (same
directory is easiest) and specify them in the
main jar's manifest file. Another way that I
have more experience with, is to deploy using
web start, and simply list the other jar's as
resources in the JNLP launch file.
...
how can I jdom library into my jar file in eclipse?
I don't provide support for eclipse. You
might try the eclipse forums, for that.
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200707/1