[jdom-interest] ref : Exception in thread
"main" java.lang.NoSuchMethodError:
org.jdom.Element.addContent(Lorg/jdom/Element; )Lorg/jdom/Element;
Jason Hunter
jhunter at xquery.com
Mon Nov 29 08:52:39 PST 2004
Your code is being compiled against a different jdom.jar than you're
executing against, and the two JARs aren't exactly the same version.
Look for extraneous JARs.
(And don't ever use jre/lib/ext for your own JARs, you'll get nothing
but grief.)
-jh-
Gunjan wrote:
> Hi,
>
> I am new to java programing. Using Jdom in my application and getting
> following error while executing the application. I have both jdom.jar
> and xerces.jar in jre/lib/ext dir. still I am getting the following error...
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.jdom.Element.addCont
> ent(Lorg/jdom/Element;)Lorg/jdom/Element;
> at com.datacash.util.XMLDocument.set(XMLDocument.java:150)
> at
> com.datacash.util.XMLDocument.setUserAgentInfo(XMLDocument.java:101)
> at com.datacash.util.XMLDocument.<init>(XMLDocument.java:59)
> at com.datacash.util.XMLDocument.<init>(XMLDocument.java:39)
> at TestTransactions.main(TestTransactions.java:96)
>
> Any body could hep me out..
>
> Thanks in advance...
>
> Gunjan
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list